I added print to help me identify the problem. This script fires the remote fine but when it gets to the local script it doesn't really work any ideas?

--Server
local Players = game:GetService("Players")
local remote = game:GetService("ReplicatedStorage"):WaitForChild("host")

game.Players.PlayerAdded:Connect(function(Player)
    if Player:GetRankInGroup(4117755) >= 199 then
        Player.Chatted:Connect(function(Message)
            if Message ~= nil then 
                if string.lower(string.sub(Message, 1 , 5)) == "start" then
	                 print("fireing")
                   remote:FireAllClients()
print("fired")
end
            end
        end)
    end
end)
--Local and in the gui
local plr = game:GetService("Players").LocalPlayer
local remote = game:GetService("ReplicatedStorage"):WaitForChild("start")

remote.OnClientEvent:Connect(function()
    script.Parent.Visible = true 
end)

--Errors
Players.PlayerGui.ScreenGui.LocalScript:5: bad argument #3 to 'Text' (string expected, got nil)

2 comments

0

Nevermind I figured it out :)

0

gg