Advertisement
pakin2549

Untitled

Jan 3rd, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 = game:service'Players'.LocalPlayer
  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)
  32. eyes.Anchored = false
  33. eyes.Name = "Eyes"
  34. eyes.Size = Vector3.new(0.22, 0.052, 0.105)
  35. eyesm = Instance.new('SpecialMesh', eyes)
  36. eyesm.Scale = Vector3.new(0.039, 0.039, 0.039)
  37. eyesm.MeshId = "rbxassetid://1300138314"
  38. eyesm.TextureId = "rbxassetid://1300129774"
  39.  
  40. body = Instance.new('Part', char)
  41. body.Anchored = false
  42. body.Name = "Body"
  43. body.Size = Vector3.new(0.07, 0.062, 0.078)
  44. bodym = Instance.new('SpecialMesh', body)
  45. bodym.Scale = Vector3.new(0.039, 0.039, 0.039)
  46. bodym.MeshId = "rbxassetid://1300136843"
  47. bodym.TextureId = "rbxassetid://1300137893"
  48.  
  49. weld1 = Instance.new('Weld', eyes)
  50. weld1.Part0 = eyes
  51. weld1.Part1 = root
  52. weld1.C0 = CFrame.new(0,1.55,.2)
  53. weld2 = Instance.new('Weld', body)
  54. weld2.Part0 = body
  55. weld2.Part1 = root
  56. weld2.C0 = CFrame.new(0,2.1,0)
  57. local music=Instance.new("Sound",char.Torso)
  58. music.SoundId="rbxassetid://1319438783"
  59. music.Volume = 2.5
  60. music.Looped=true
  61. music:Play()
  62. TheWay1 = Instance.new('Sound', body)
  63. TheWay1.SoundId = "rbxassetid://1320393438"
  64. TheWay1.Volume = 3
  65. TheWay1.Name = "TheWay1"
  66. TheWay2 = Instance.new('Sound', body)
  67. TheWay2.SoundId = "rbxassetid://1295525558"
  68. TheWay2.Volume = 3
  69. TheWay2.Name = "TheWay2"
  70. Spit = Instance.new('Sound', body)
  71. Spit.SoundId = "rbxassetid://1322795266"
  72. Spit.Volume = 3
  73. Spit.Name = "Spit"
  74. Click = Instance.new('Sound', body)
  75. Click.SoundId = "rbxassetid://1335379417"
  76. Click.Volume = 3
  77.  
  78. num = 1
  79. cooldown = false
  80. rand = math.random(1,2)
  81.  
  82. for i = 1,10 do
  83. wait()
  84. char.Archivable = true
  85. clone = char:Clone()
  86. for _, a in pairs(clone:children()) do
  87. if a.Name == "Right Arm" or a.Name == "UpperRightArm" then
  88. a:Destroy()
  89. elseif a.Name == 'Left Arm' or a.Name == 'UpperLeftArm' then
  90. a:Destroy()
  91. elseif a.Name == "Torso" or a.Name == "UpperTorso" then
  92. if a.Sound then
  93. a.Sound:Remove()
  94. end
  95. end
  96. end
  97. table.insert(clones,clone)
  98. end
  99.  
  100. for _, a in pairs(clones) do
  101. a.Parent = char
  102. a:MoveTo(root.Position + Vector3.new(math.random(1,10),math.random(1,10),math.random(1,10)))
  103. end
  104.  
  105. function sfx1()
  106. for _, a in pairs(clones) do
  107. rand = math.random(1,2)
  108. if rand == 1 then
  109. a.Body['TheWay1'].Pitch = math.random(0.9,1)
  110. a.Body['TheWay1']:Play()
  111. elseif rand == 2 then
  112. a.Body['TheWay2'].Pitch = math.random(0.9,1)
  113. a.Body['TheWay2']:Play()
  114. end
  115. wait(math.random(0.4,0.6))
  116. end
  117. end
  118.  
  119. function sfx2()
  120. for _, a in pairs(clones) do
  121. a.Body.Spit.Pitch = math.random(0.9,1)
  122. a.Body.Spit:Play()
  123. wait(math.random(0.4,0.6))
  124. end
  125. end
  126.  
  127. mouse.KeyDown:connect(function(k)
  128. key = k:lower()
  129. if key == "e" and not cooldown then
  130. cooldown = true
  131. sfx1()
  132. wait(.7)
  133. cooldown = false
  134. elseif key == "r" and not cooldown then
  135. cooldown = true
  136. sfx2()
  137. wait(.7)
  138. cooldown = false
  139. end
  140. end)
  141.  
  142. plr.Chatted:connect(function(m)
  143. if string.sub(m:lower(),1,15) == "bruddas, follow" then
  144. for _,v in pairs(game:service'Players':GetPlayers()) do
  145. if string.find(v.Name:lower(),string.sub(m:lower(),17,-1)) then
  146. stalking = v
  147. else
  148. stalking = plr
  149. end
  150. end
  151. elseif string.sub(m:lower(),1,16) == "bruddas, protect" then
  152. for _,v in pairs(game:service'Players':GetPlayers()) do
  153. if string.find(v.Name:lower(),string.sub(m:lower(),18,-1)) then
  154. protecting = v
  155. else
  156. protecting = nil
  157. end
  158. end
  159. end
  160. end)
  161.  
  162. while wait(1) do
  163. number = #clones
  164. position = root.CFrame
  165. protecting = false
  166. if stalking == nil then
  167. followplr = true
  168. elseif stalking ~= nil then
  169. followplr = false
  170. end
  171. for _, a in pairs(clones) do
  172. if a:FindFirstChildOfClass'Humanoid' and followplr and not protecting then
  173. a:FindFirstChildOfClass'Humanoid':MoveTo(root.Position + Vector3.new(math.random(-10,10),0,math.random(-10,10)))
  174. end
  175. end
  176. if not protecting and not followplr and stalking ~= nil and stalking.Character:FindFirstChild'HumanoidRootPart' then
  177. for _, a in pairs(clones) do
  178. if a:FindFirstChildOfClass'Humanoid' then
  179. a:FindFirstChildOfClass'Humanoid':MoveTo(stalking.Character.HumanoidRootPart.Position + Vector3.new(math.random(-10,10),0,math.random(-10,10)))
  180. end
  181. end
  182. rand = math.random(1,10)
  183. if rand == 5 then
  184. for i = 1,3 do
  185. random = clones[math.random(1,#clones)]
  186. rand = math.random(1,2)
  187. if rand == 1 then
  188. random.Body['TheWay1']:Play()
  189. else
  190. random.Body['TheWay2']:Play()
  191. end
  192. end
  193. end
  194. end
  195. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement