So for some reason this does not change the value of this Frame please help me!
Player.Chatted:connect(function(message) if message:lower() == "skip" then if groupId > 0 then game.StarterGui.NoPerms.Frame.Visible = true wait(3) game.StarterGui.NoPerms.Frame.Visible = false
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 --[[and groupId > 0 ]] 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 --since this script is inside the starter gui, we can reference the frame by saying script.Parent (the noperms gui) .Frame (the frame) player.Chatted:Connect(function(message) local playerSaidSkip = message:lower() == "skip" if playerSaidSkip --[[ and groupId > 0 ]] then frame.Visible = true wait(3) frame.Visible = false end end)
Maybe the line space are not organised? After if group id > 0 then, the lines must be positioned under the groupid. It might look like it
Player.Chatted:connect(function(message) if message:lower() == "skip" then if groupId > 0 then game.StarterGui.NoPerms.Frame.Visible = true wait(3) game.StarterGui.NoPerms.Frame.Visible = false
I'm not sure about it.
Try this:
Player.Chatted:connect(function(message) local screen = Script.Parent.Parent.NoPerms.Frame -- change this to your screen gui and dont use game.parent! if message:lower() == "skip" then if groupId > 0 then screen.Visible = true wait(3) screen.Visible = false
I hope this solved your issue.