So I’ve tried just about everything to get this to work, and I just cant for some reason. Any suggestions? Here’s the code:
Server
local touched = false
local remote = game.ReplicatedStorage.Events.s
script.Parent.Touched:Connect(function(hit)
local text = "Objective Testing"
local part = script.Parent
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
remote:FireClient(plr, text, part)
end)
Instead of passing the player argument twice just define the local player instance at the top of the local script (it’s likely going to be referenced elsewhere anyway).