of     1   

keehl254
#63557441Tuesday, February 28, 2012 1:21 AM GMT

I need help trying to figure out this script. It isn't written very good, because i'm not used to guis. here is what i got of the script so far. function Click(mouse) local user = game.Workspace:findFirstChild(mouse.Name) local human = user:findFirstChild("Humanoid") local torso = user:findFirstChild("Torso") if (torso ~= nil) then human.WalkSpeed = "16" torso.CFrame = CFrame.new(144.2, 46.8, 233.1) script.Parent.Parent.Parent:Remove() else wait(0) end end script.Parent.MouseButton1Down:connect(Click)
bl5eebryce
#63561399Tuesday, February 28, 2012 2:22 AM GMT

The else wait(0) was unnecessary, also to find the user, use Player.Character. script.Parent.MouseButton1Down(function(mouse) local user=script.Parent.Parent.Parent.Parent.Character --Add more if needed local human=user:FindFirstChild("Humaniod") local torso=user.Torso if torso~=nil then human.WalkSpeed = 16 --Number, not a string torso.CFrame = CFrame.new(Vector3.new(144.2, 146.8, 233.1)) script.Parent.Parent.Parent:Remove() end end)
keehl254
#63562109Tuesday, February 28, 2012 2:33 AM GMT

Thank you
keehl254
#63562244Tuesday, February 28, 2012 2:35 AM GMT

btw where i wright something like human.Walkspeed = "16" i don't mean it as a string, but i wright it out like that so if there were something with the name or other value of 16 then it would work as a number. I learned it works both ways.
keehl254
#63593661Wednesday, February 29, 2012 12:01 AM GMT

About the script you gave me, it didn't work. Mine worked perfectly with the user string though. I still want to thank you for helping me with my script. The working script i used was: It is kind of a mixture between our scripts. function Click(mouse) local user = script.Parent.Parent.Parent.Parent.Parent.Character local human = user:FindFirstChild("Humanoid") local torso = user:findFirstChild("Torso") if (torso ~= nil) then human.WalkSpeed = "16" torso.CFrame = CFrame.new(144.2, 46.8, 233.1) script.Parent.Parent.Parent:Remove() else wait(0) end end script.Parent.MouseButton1Down:connect(Click)

    of     1