View difference between Paste ID: K6fTqpeF and UGJHdhTx
SHOW: | | - or go back to the newest paste.
1-
-- WATCH THE VIDEO > https://www.youtube.com/watch?v=EJrAvxM6awQ&lc=z231clqqmknhe5kstacdp430rezk3yaldwlzjnfndhtw03c010c
1+
game.Workspace.ChildAdded:connect(function(ch)
2
wait(1)
3
if ch:FindFirstChild("Humanoid") then
4-
local function callback(text)
4+
5-
    if text == "Yes" then
5+
Title = "Item Logger";
6-
	print("User said yes")
6+
Text = "Player Spawned: " .. ch.Name;
7-
    elseif text == "No" then
7+
})
8-
	print("User said no")
8+
else
9-
    end
9+
10
Title = "Item Logger";
11
Text = "ChildAdded: " .. ch.Name;
12-
local bindableFunction= Instance.new("BindableFunction")
12+
})
13
end
14
end)
15-
    Title = "TITLE";
15+
16-
    Text = "TEXT";
16+
game.Players.ChildAdded:connect(function(ch)
17-
    Icon = "RBXID OR BLANK";
17+
18-
    Duration = "DURATION IN SECONDS";
18+
19-
    callbakc = bindableFunction;
19+
Title = "Item Logger";
20-
    Button1 = "BUTTON1 TEXT";
20+
Text = "New Player: " .. ch.Name;
21-
    Button2 = "BUTTON2 TEXT";
21+
})
22-
})
22+
end)
23
24
game.Players.ChildRemoved:connect(function(ch)
25
wait(1)
26
game.StarterGui:SetCore("SendNotification", {
27
Title = "Item Logger";
28
Text = "Removed Player: " .. ch.Name;
29
})
30
end)