Hi, when I try to pass the player argument through FireClient it comes out with the error "FireClient: player argument must be a Player object", and I'm confused. Do I need to define the player beforehand for this to work?
Script
local function windows (player)
if script.Parent.Occupant ~= nil then
game.ReplicatedStorage.SeeThrough:FireClient(player)
end
end
script.Parent.Touched:Connect(windows)

1 comment
Try script.Parent.Touched:Connect(windows(hit)) I'm not sure it will work, but you could try it.