|
| 25 Jun 2014 08:41 PM |
This script works fine in test mode but doesn't work on a server... Help? If you dont understand what this script is supposed leave a reply asking and I'll tell you but I'm to lazy to explain it hear...
script.Parent.CanCollide = false wait (2)
debounce = false script.Parent.CanCollide = true script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") and hit.Parent:FindFirstChild("Head") and debounce == false then if not hit.Parent.Head:FindFirstChild("Upgrade") then debounce = true local lol = script.Parent:Clone() lol.Parent = game.Players.LocalPlayer.PlayerGui.ScreenGui.Chest wait(0.1) hit.Parent.Humanoid.MaxHealth = 150 script.Parent.Sound:Play() local bob = script.Upgrade:Clone() bob.Icon.Visible = true bob.Parent = hit.Parent.Humanoid.Parent.Head script.Parent.CanCollide = false script.Parent.Transparency = 1 game.Players.LocalPlayer.PlayerGui.ScreenGui.Chest.Image = ("http://www.roblox.com/asset/?id=162826925")
else
wait(math.random(100,10000)) debounce = false script.Parent.Transparency = 0 script.Parent.CanCollide = true
end end end)
|
|
|
| Report Abuse |
|
|
|
| 25 Jun 2014 08:42 PM |
| I don't know much about scripting but have you tried changing it to a local script. I've been able to fix a couple scripts with that problem by doing that. |
|
|
| Report Abuse |
|
|
|
| 25 Jun 2014 08:45 PM |
| @Above thanks for trying but it didn't work |
|
|
| Report Abuse |
|
|
| |
|
|
| 25 Jun 2014 08:50 PM |
| Come on guys Ima bump untill we dump! |
|
|
| Report Abuse |
|
|
|
| 25 Jun 2014 08:55 PM |
| Holly crap some one F5 bombed me ;_; |
|
|
| Report Abuse |
|
|