View difference between Paste ID: xnzkKbrf and K3z8CSZ3
SHOW: | | - or go back to the newest paste.
1
player=game:GetService("Players").LocalPlayer
2
char=player.Character
3
mouse=player:GetMouse()
4
5
fart1 = Instance.new("Sound", char.head)
6-
fart1.SoundId = "http://www.roblox.com/asset/?id=170184872"
6+
fart1.SoundId = "http://www.roblox.com/asset/?id=148548205"
7
fart1.Volume = 1
8
fart1.Looped = true
9
local fart2 = false
10
11
local fart = Instance.new("Animation", char)
12
fart.AnimationId = "rbxassetid://149359445"
13
fart.Name = "fart"
14
15
16
mouse.KeyDown:connect(function(key) local key=key:lower()
17
if key=="f" then
18
local vCharacter = char
19
local hum = vCharacter:findFirstChild("Humanoid")
20
blah4 = hum:LoadAnimation(char.fart)
21
blah4:Play()
22
end
23
end)
24
mouse.KeyUp:connect(function(key) local key=key:lower()
25
if key=="f" then
26
blah4:Stop()
27
end
28
end)
29
mouse.KeyDown:connect(function(key) local key=key:lower()
30
if key=="f" then
31
fart2 = true
32
fart1:Play()
33
end
34
end)
35
mouse.KeyUp:connect(function(key) local key=key:lower()
36
if key=="f" then
37
fart2 = false
38
fart1:Stop()
39
end
40
end)