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.

7 comments

0

Remote Events

0

What part of the script should I put in a remote event?

0

Using a script, I don't see why this wouldn't work. Errors? You shouldn't be using a LocalScript for this.

0

No errors

0

There should be errors if it doesn't work.

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.

0

LMAooooo