I’m trying to fire an event and it’s giving an error
script.Parent.Touched:Connect(function()
game.ReplicatedStorage.playerjoin1:FireClient()
end)
Output
Argument 1 missing or nil
I’m trying to fire an event and it’s giving an error
script.Parent.Touched:Connect(function()
game.ReplicatedStorage.playerjoin1:FireClient()
end)
Output
Argument 1 missing or nil
you are missing an argument for the .touch function
script.Parent.Touched:Connect(function(hit)
game.ReplicatedStorage.playerjoin1:FireClient(hit.Parent.Name)
end)
this is assuming hit is a player and it hit a player’s body part
please look up the API documentation for the .Touched event
https://developer.roblox.com/en-us/api-reference/event/BasePart/Touched
Ok thank you I will use this in my script