Advertisement
pakin2549

Untitled

Jan 3rd, 2019
164
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 = 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. body = Instance.new('Part', char)
  32. body.Anchored = false
  33. body.Name = "Body"
  34. body.Size = Vector3.new(0.07, 0.062, 0.078)
  35. bodym = Instance.new('SpecialMesh', body)
  36. bodym.Scale = Vector3.new(0.039, 0.039, 0.039)
  37. bodym.MeshId = "rbxassetid://1490852609"
  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. TheWay1.SoundId = ""
  47. TheWay1.Volume = 3
  48. TheWay1.Name = "TheWay1"
  49. Click = Instance.new('Sound', body)
  50. Click.SoundId = "rbxassetid://1335379417"
  51. Click.Volume = 3
  52.  
  53. num = 1
  54. cooldown = false
  55. rand = math.random(1,2)
  56.  
  57. for i = 1,10 do
  58. wait()
  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. a:Destroy()
  64. elseif a.Name == 'Left Arm' or a.Name == 'UpperLeftArm' then
  65. a:Destroy()
  66. elseif a.Name == "Torso" or a.Name == "UpperTorso" then
  67. if a.Sound then
  68. a.Sound:Remove()
  69. end
  70. end
  71. end
  72. table.insert(clones,clone)
  73. end
  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. for _,v in pairs(game:service'Players':GetPlayers()) do
  113. if string.find(v.Name:lower(),string.sub(m:lower(),17,-1)) then
  114. stalking = v
  115. else
  116. stalking = plr
  117. end
  118. end
  119. elseif string.sub(m:lower(),1,16) == "bruddas, protect" then
  120. for _,v in pairs(game:service'Players':GetPlayers()) do
  121. if string.find(v.Name:lower(),string.sub(m:lower(),18,-1)) then
  122. protecting = v
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement