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

making attack demage dont work? Please help.! (F.E)

Asked by
tomekcz 174
5 years ago

so i want to make fe script that take damage

that script dont work

note: mouse is Mouse's target


RemoteEvent = script.Parent.Attack RemoteEvent.OnServerEvent:Connect(function(player, mouse, pow) if mouse.Parent:FindFirstChild("Humanoid") then print(script.Parent.UpperTorso.Position) if (mouse.Position - script.Parent.Head.Position).Magnitude > 10 then mouse.Parent.Humanoid.Health = mouse.Parent.Humanoid.Health - 10 print(mouse.Parent.Humanoid.Health) end end end)
0
Why name it mouse and not target? mouse is misleading. User#24403 69 — 5y
0
idk @incapaxian tomekcz 174 — 5y

Answer this question