Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

onChatted / Gui Help!?

Asked by 10 years ago

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)
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. Tkdriverx 514 — 10y

1 answer

Log in to vote
1
Answered by 10 years ago

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

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

Answer this question