Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can I make my damage script work in an FE game?

Asked by 6 years ago
function onTouched(hit)
        local human = hit.Parent:findFirstChild("Humanoid")
        local char = hit.Parent
        if (human ~= nil) then
                human.Health = human.Health - 9 
                s = human:LoadAnimation(game.Workspace.dipped)
                s:Play()
                game.Lighting.Boss:Clone().Parent = char.Torso  
                wait(2)
  end
end
script.Parent.Touched:connect(onTouched)

When I put it in a localscript it works but doesn't show damage to other players but when it's a script it has no effect(With FE on) when FE is off it works perfectly for some reason.

0
Remote Events SebbyTheGODKid 198 — 6y
0
What part of the script should I put in a remote event? shankable 9 — 6y
0
Using a script, I don't see why this wouldn't work. Errors? You shouldn't be using a LocalScript for this. OldPalHappy 1477 — 6y
0
No errors shankable 9 — 6y
View all comments (3 more)
0
There should be errors if it doesn't work. OldPalHappy 1477 — 6y
0
Why are you using findFirstChild?? it’s FindFirstChild. And Connect over connect. Have you been on ROBLOX for like 6 years and not use it for a long time? Welcome to 2018, we use FindFirstChild and Connect. satanxd666 60 — 6y
0
LMAooooo DaWarTekWizard 169 — 6y

Answer this question