Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

onChatted / Gui Help!?

It kicks the person but doesnt show the gui! Please help!

-- Variables
kick = "wanna date"
showFrame = "Smoothie Please"
game.Players.PlayerAdded:connect(function(plr)
plr.Chatted:connect(function(msg)
if msg == kick then
game.ReplicatedStorage.DateGui:Clone().Parent = plr.PlayerGui
wait(3)
plr:Remove()
end
end)
end)

1 comment

0

When the player is removed, any GUI inside the player also gets removed. Same when using :Kick(). Therefore, the player never really sees the GUI AFTER they get kicked/removed.

1 answer

✓ Accepted answer

Did you put a 'screengui' object and then put the gui in the 'screengui' object?

PLAYER:Kick() --You can use this too

This discussion is preserved as it was. New answers, comments, and votes are closed.