I'm trying to send a remote event via a server script, and have a local script listen for it and change things accordingly so it's not tied to the server. But, when I touch the part and send the remote, the local script doesn't see it
Server Script =
local Players = game:GetService("Players")
script.Parent.Touched:Connect(function(hit)
local character = hit.Parent
local player = Players:GetPlayerFromCharacter(character)
remote:FireClient(player)
end)
Local script =
remote.OnClientEvent:Connect(function()
local border = workspace.Part.Border
local gui = script.Parent.InteractGui
if border:IsA("Model") then
for _, part in pairs(border:GetDescendants()) do
if part:IsA("BasePart") then
part.Color = Color3.fromRGB(255, 255, 0)
end
end
end
gui.Idle.Visible = false
gui.Interact.Visible = true
end)
** You are now Level 2! **