View difference between Paste ID: hhdgWNLL and TBp6yx36
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3
local RealPlayer = Player
4
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
5
6
7
8
wait(1/60)
9
10
plr = owner
11
char = plr.Character
12
root = char:FindFirstChild'HumanoidRootPart'
13
hum = char:FindFirstChildOfClass'Humanoid'
14
mouse = plr:GetMouse()
15
clones = {}
16
followplr = true
17
radius = 25
18
19
if char.Head:FindFirstChild'face' then
20
char.Head.face:Destroy()
21
end
22
23
for _, a in pairs(char:children()) do
24
if a:IsA'Part' then
25
a.Transparency = 1
26
elseif a:IsA'Accessory' then
27
a:Destroy()
28
end
29
end
30
31-
eyes = Instance.new('Part', char)
31+
32-
eyes.Anchored = false
32+
33-
eyes.Name = "Eyes"
33+
34-
eyes.Size = Vector3.new(0.22, 0.052, 0.105)
34+
35-
eyesm = Instance.new('SpecialMesh', eyes)
35+
36-
eyesm.Scale = Vector3.new(0.039, 0.039, 0.039)
36+
37-
eyesm.MeshId = "rbxassetid://1300138314"
37+
bodym.MeshId = "rbxassetid://1490852609"
38-
eyesm.TextureId = "rbxassetid://1300129774"
38+
bodym.TextureId = "rbxassetid://1490852626"
39
40
local music=Instance.new("Sound",char.Torso)
41
music.SoundId="rbxassetid://414454387"
42
music.Volume = 2.5
43
music.Looped=true
44
music:Play()
45
TheWay1 = Instance.new('Sound', body)
46-
bodym.MeshId = "rbxassetid://1300136843"
46+
TheWay1.SoundId = ""
47-
bodym.TextureId = "rbxassetid://1300137893"
47+
48
TheWay1.Name = "TheWay1"
49-
weld1 = Instance.new('Weld', eyes)
49+
50-
weld1.Part0 = eyes
50+
51-
weld1.Part1 = root
51+
52-
weld1.C0 = CFrame.new(0,1.55,.2)
52+
53-
weld2 = Instance.new('Weld', body)
53+
54-
weld2.Part0 = body
54+
55-
weld2.Part1 = root
55+
56-
weld2.C0 = CFrame.new(0,2.1,0)
56+
57
for i = 1,10 do
58-
music.SoundId="rbxassetid://1319438783"
58+
59
char.Archivable = true
60
clone = char:Clone()
61
for _, a in pairs(clone:children()) do
62
if a.Name == "Right Arm" or a.Name == "UpperRightArm" then
63-
TheWay1.SoundId = "rbxassetid://1320393438"
63+
64
elseif a.Name == 'Left Arm' or a.Name == 'UpperLeftArm' then
65
a:Destroy()
66-
TheWay2 = Instance.new('Sound', body)
66+
67-
TheWay2.SoundId = "rbxassetid://1295525558"
67+
68-
TheWay2.Volume = 3
68+
69-
TheWay2.Name = "TheWay2"
69+
70-
Spit = Instance.new('Sound', body)
70+
71-
Spit.SoundId = "rbxassetid://1322795266"
71+
72-
Spit.Volume = 3
72+
73-
Spit.Name = "Spit"
73+
74
75
for _, a in pairs(clones) do
76
a.Parent = char
77
a:MoveTo(root.Position + Vector3.new(math.random(1,10),math.random(1,10),math.random(1,10)))
78
end
79
80
function sfx1()
81
for _, a in pairs(clones) do
82
rand = math.random(1,2)
83
if rand == 1 then
84
a.Body['TheWay1'].Pitch = math.random(0.9,1)
85
a.Body['TheWay1']:Play()
86
elseif rand == 2 then
87
a.Body['TheWay1'].Pitch = math.random(0.9,1)
88
a.Body['TheWay1']:Play()
89
end
90
wait(math.random(0.4,0.6))
91
end
92
end
93
94
95
mouse.KeyDown:connect(function(k)
96
key = k:lower()
97
if key == "e" and not cooldown then
98
cooldown = true
99
sfx1()
100
wait(.7)
101
cooldown = false
102
elseif key == "r" and not cooldown then
103
cooldown = true
104
sfx2()
105
wait(.7)
106
cooldown = false
107
end
108
end)
109
110
plr.Chatted:connect(function(m)
111
if string.sub(m:lower(),1,15) == "bruddas, follow" then
112-
a.Body['TheWay2'].Pitch = math.random(0.9,1)
112+
113-
a.Body['TheWay2']:Play()
113+
114
stalking = v
115
else
116
stalking = plr
117
end
118
end
119-
function sfx2()
119+
120
for _,v in pairs(game:service'Players':GetPlayers()) do
121-
a.Body.Spit.Pitch = math.random(0.9,1)
121+
122-
a.Body.Spit:Play()
122+
123
else
124
protecting = nil
125
end
126
end
127
end
128
end)
129
130
while wait(1) do
131
number = #clones
132
position = root.CFrame
133
protecting = false
134
if stalking == nil then
135
followplr = true
136
elseif stalking ~= nil then
137
followplr = false
138
end
139
for _, a in pairs(clones) do
140
if a:FindFirstChildOfClass'Humanoid' and followplr and not protecting then
141
a:FindFirstChildOfClass'Humanoid':MoveTo(root.Position + Vector3.new(math.random(-10,10),0,math.random(-10,10)))
142
end
143
end
144
if not protecting and not followplr and stalking ~= nil and stalking.Character:FindFirstChild'HumanoidRootPart' then
145
for _, a in pairs(clones) do
146
if a:FindFirstChildOfClass'Humanoid' then
147
a:FindFirstChildOfClass'Humanoid':MoveTo(stalking.Character.HumanoidRootPart.Position + Vector3.new(math.random(-10,10),0,math.random(-10,10)))
148
end
149
end
150
rand = math.random(1,10)
151
if rand == 5 then
152
for i = 1,3 do
153
random = clones[math.random(1,#clones)] 
154
rand = math.random(1,2)
155
if rand == 1 then
156
random.Body['TheWay1']:Play()
157
else
158
end
159
end
160
end
161
end
162
end