✓ Accepted answer
Here's the example I was talking about:
My only concern is I don't know what if groupId > 0 then is so I commented it out for now
Could you explain that a bit more?
If this doesn't work we can team create.
Here is how you would do it from a server (normal) script:
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(message)
local playerSaidSkip = message:lower() == "skip"
if playerSaidSkip then
player.PlayerGui.NoPerms.Frame.Visible = true
wait(3)
player.PlayerGui.NoPerms.Frame.Visible = false
end
end)
end)
You can do this from a local script too:
make sure you put the local script directly inside the NoPerms gui in the startergui
local player = game:GetService("Players").LocalPlayer
local frame = script.Parent.Frame
player.Chatted:Connect(function(message)
local playerSaidSkip = message:lower() == "skip"
if playerSaidSkip then
frame.Visible = true
wait(3)
frame.Visible = false
end
end)
7 comments
Can you send the whole script?
I have sent you the whole script.
uh, it's broken. There's no linespace in it and i cant understand.
You're changing the value of the frame in the starter gui. Guis are cloned from the starter gui into the player. They won't get the new gui with the invisible frame until they reset. Instead, change the PLAYERS frame.
Could you explain this with the script so I could copy and paste it?
yeah ok
So, maybe add an "end)" when closing your if statement? That's probably the problem.