Basically, I have a script inside of a part that is set to fire a remote event to the client, but it just… isn’t working. No errors, just nothing.
Server Script (Script Inside The Part)
local part = script.Parent
local rem = game.ReplicatedStorage:WaitForChild("sitInSeat")
local player = game.Players.PlayerAdded
part.Touched:Connect(function(hit)
if hit.Parent:FindFirstChildOfClass("Humanoid") then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
rem:FireClient(player)
end
end)
Local Script (Handles The Remote Event)
rem6.OnClientEvent:Connect(function()
label.Text = "current objective: wait for class to end"
local timer = 45
local deb = true
while deb == true do
if timer > 0 then
script.Parent.EventText.Visible = true
script.Parent.EventText.Text = "class ends in "..timer
print(timer)
timer -= 1
wait(1)
else
deb = false
end
end
end)