I made a script that makes it so the player who uses the magic power through a remote event makes there health go to 100 but it's not working :(
Here is my script.
game.ReplicatedStorage.Events.HealingEvent.OnServerEvent:Connect(function(plr)
local heal = Instance.new("Fire")
heal.Color = Color3.fromRGB(0,255,0)
heal.Parent = plr.Character.RightHand
wait(2)
plr.Character.Humanoid.Health = plr.Character.Humanoid.Health + 100
heal:Destroy()
end)

1 comment
Could we also see the LocalScript associated with this?