Roblox lua module

Code examples

0
0

Roblox lua

//zero gravity ball script\\
script.Parent.Activated:Connect(function()
	local part = Instance.new("Part")
	local fire = Instance.new("Fire")
	local force = script.Parent.cloneme:Clone()
	force.Parent = part
	fire.Parent = part
	part.Shape = Enum.PartType.Ball
	part.Parent = game.Workspace
	part.Position = script.Parent.Handle.Position
	part.Touched:Connect(function(otherpart)
		local Brick = part
		local function PlayerTouched(Part)
			local Parent = Part.Parent
			if game.Players:GetPlayerFromCharacter(Parent) then
				Parent.Humanoid.WalkSpeed = 32
			end
		end

		Brick.Touched:connect(PlayerTouched)
	end)
end)


//zero gravity script rember to always name part Handle and put it in tool in 
starter pack with these two scripts\\
local part = script.Parent

local force = Instance.new("BodyForce")
force.Parent = part

local antigrav = workspace.Gravity * part:GetMass()

force.Force = Vector3.new(0, antigrav, 0)

Similar pages

Similar pages with examples

In other languages

This page is in other languages

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................