|
| 25 Jun 2014 09:15 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 09:33 PM |
That's because in Test Solo, scripts are ran locally, allowing even Server-Sided scripts to use LocalPlayer. However, in a regular server, this is not the case. You're gonna have to fix how you reference the player. |
|
|
| Report Abuse |
|
|
|
| 25 Jun 2014 09:43 PM |
Can you help me with the fix?
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 25 Jun 2014 10:09 PM |
| PLEASE I NEED HELP SO BUMPBS |
|
|
| Report Abuse |
|
|
| |
|