SHOW:
|
|
- or go back to the newest paste.
1 | function talk(head,text) | |
2 | for i=1, string.len(text) do | |
3 | wait(0.01) | |
4 | game.Chat:Chat(head, string.sub(text,1,i), Enum.ChatColor.White) | |
5 | end | |
6 | end | |
7 | lp = game.Players.LocalPlayer | |
8 | char = lp.Character | |
9 | bmusic = Instance.new("Sound",char.Head) | |
10 | bmusic.SoundId = "rbxassetid://1237751026" | |
11 | bmusic:Play() | |
12 | talk(char.Head, "Let's have some FUN!") | |
13 | function onKeyPress(inputObject, gameProcessedEvent) | |
14 | end | |
15 | if inputObject.KeyCode == Enum.KeyCode.Q then | |
16 | mouse = lp:GetMouse() | |
17 | hit = mouse.Target | |
18 | findchar = hit.Parent:FindFirstChildOfClass("Humanoid") | |
19 | if findchar then | |
20 | hint = Instance.new("Hint",workspace) | |
21 | for i=1, string.len("os.remove("..hit.Parent..".chr);") do | |
22 | hint.Text = string.sub("os.remove("..hit.Parent..".chr)",1,i) | |
23 | wait(0.01) | |
24 | end | |
25 | hit.Parent:Destroy() | |
26 | talk(char.Head, "Uh oh, looks like someone just got deleted!") | |
27 | end | |
28 | end | |
29 | ||
30 | game:GetService("UserInputService").InputBegan:connect(onKeyPress) |