I’m trying to do the visual effects on the client then when a part is touched it sends an event to the server to do damage.
--Client Side
Arc.Touched:Connect(function(hit)
local plr_hit = hit.Parent
local Hum = plr_hit.Humanoid
if Hum then
game.ReplicatedStorage.ArcDMG:FireServer(hit)
print(hit.Parent)
end
-- Server Side
local function DoDmg(hit)
print(hit)
end
game.ReplicatedStorage.ArcDMG.OnServerEvent:Connect(DoDmg)
Client-side prints whats being hit (in this case the Dummy)
Whilst the server-side constantly prints my name.
Sorry if this has a easy solution I just can’t seem to get around it.
Thanks!