Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How do I make my character invisible and plug it into this script?

Asked by 9 years ago

bin = script.Parent me = script.Parent.Parent.Parent

enabled = true

function onButton1Down(mouse) if not enabled then return end

local player = game.Players.LocalPlayer
if player == nil then return end

  --Here is how i disabled the tool from working after you click once "enabled = false"

  enabled = false
    Run = game:GetService("RunService")


for i = 1,1000 do
                                        p = Instance.new("Part")
                     zomg = math.random(1, 2)
         if zomg == 1 then
        p.BrickColor = BrickColor.new("Really black")
          end
          if zomg == 2 then
         p.BrickColor = BrickColor.new("Really black")

end p.Size = Vector3.new(4.5,2,4.5) p.formFactor = "Symmetric" p.Anchored = true p.Shape = "Ball" p.CanCollide = false p.Transparency = 0.2 s = script.Spin:clone() s.Parent = p p.TopSurface = "Smooth" p.BottomSurface = "Smooth" script.Parent.Mesh:clone().Parent = p p.Parent = me.Character script.Grow:clone().Parent = p me.Character.Humanoid.WalkSpeed = 60 p.CFrame = me.Character.Torso.CFrame*CFrame.new(0, -3.8, -0) p.CFrame = p.CFrame * CFrame.Angles(math.random(-0,0),(math.random(-10,10)), 0) wait(0.025) end

me.Character.Humanoid.WalkSpeed = 16

  wait(27)

enabled = true end enabled = true function onS(mouse) mouse.Button1Down:connect(function()onButton1Down(mouse)end) end bin.Selected:connect(onS)

0
Please put all your code in a code block and tab it correctly. You have some of it in a code block, but please put all of it in one. It's that little blue Lua symbol on the right. Perci1 4988 — 9y

Answer this question