I know how to find it in a LocalScript, but if I have a ServerScript, how do I find it? I have tried this code, but I think what I find is Workspace.
local part = script.Parent
local event = part:FindFirstChild("RemoteEvent")
part.Touched:connect(function(hit)
local player = hit.Parent.Parent
event:FireClient(player, "connect", hit)
end)
Thank you for any answer!

1 comment
You're suppose to use :GetPlayerFromCharacter