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!

01-- Variables
02kick = "wanna date"
03showFrame = "Smoothie Please"
04game.Players.PlayerAdded:connect(function(plr)
05plr.Chatted:connect(function(msg)
06if msg == kick then
07game.ReplicatedStorage.DateGui:Clone().Parent = plr.PlayerGui
08wait(3)
09plr:Remove()
10end
11end)
12end)
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?

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

Answer this question