Hello! You must've heard me from my previous question about the landmine script problem (or not). Well I took advice from blowup999 (the person that helped me with my landmine script). It looked like my game was done, until when I created a server, some scripts were not working: my landmine script and my Press R to reset script. They were working normally on ROBLOX Studio test but not on an actual server. Note: Both scripts are normal, not localscript. LANDMINE SCRIPT:
canExplode = true;
function ExplodePart(part)
if canExplode then
canExplode = false
game.Players.LocalPlayer.Character.Humanoid.Health = 0
local explosion = Instance.new("Explosion")
explosion.BlastRadius = 50
explosion.Position = part.Position
explosion.Parent = game.Workspace
wait(1)
canExplode = true
end
end
landMine = game.Workspace.Landmine
landMine.Touched:connect(ExplodePart)
PRESS R TO RESET SCRIPT:
function onKeyPress(actionName, userInputState, inputObject)
if userInputState == Enum.UserInputState.Begin then
game.Players.LocalPlayer.Character.Humanoid.Health = 0
print("Dead")
end
end
game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.R)
Once again, please help a beginner scripter! :)

1 comment
I understand now, thanks for the helpful info! ^_^