Hey, I'm pretty new to scripting but, what went wrong with this simple script, I am getting 'Argument 1 missing or nil' Here is the code:
script.Parent.Touched:Connect(function() game.ReplicatedStorage.Events.LoadHouseClient:FireClient() end)
Any help would be appreciated, thanks.
The reason is because you're missing an argument for the FireClient method which is supposed to be the player to fire the event to.
script.Parent.Touched:Connect(function(hit) local p = game.Players:GetPlayerFromCharacter(hit.Parent) if p then game.ReplicatedStorage.Events.LoadHouseClient:FireClient(p) end end)