|
| 24 Aug 2015 05:14 AM |
So I am trying to run this script. When a person touches another player. When they touch the other player will die. It runs but does not update on server just local. Did I do my FireServer right? Can I not do it like this. If so can you tell me how I can do it.
leftarm.Touched:connect(function(linfect) if not d1 then d1 = true game.Workspace.Scripts.eventfire.piep:FireServer() local char = game.Workspace:FindFirstChild(player.Name) local leftarm = char:FindFirstChild("Left Arm") if leftarm ~= nil then if linfect.Parent:FindFirstChild("Humanoid") then local hitp = game.Players[linfect.Parent.Name] hitp.Alive.Value = false linfect.Parent.Humanoid.Health = 0 end wait() d1 = false end end end) |
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Aug 2015 09:21 AM |
| If this is on a local script and filtering is enabled then you can't use a local script to change a humanoid's health. Use a server script to change health |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2015 09:24 AM |
Do this on the server, not locally..
while true do the do |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2015 10:32 AM |
| That's why I am using a RemoteEvent. So I can have be activated locally and fire server. |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2015 10:33 AM |
.Touched Event fires serverside as well !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
while true do the do |
|
|
| Report Abuse |
|
|