SHARE
TWEET

knuckles

Pancakess Jan 29th, 2019 23 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7.     print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8.     script.Parent = Player.Character
  9.  
  10.     --RemoteEvent for communicating
  11.     local Event = Instance.new("RemoteEvent")
  12.     Event.Name = "UserInput_Event"
  13.  
  14.     --Fake event to make stuff like Mouse.KeyDown work
  15.     local function fakeEvent()
  16.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17.         t.connect = t.Connect
  18.         return t
  19.     end
  20.  
  21.     --Creating fake input objects with fake variables
  22.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26.     end}
  27.     --Merged 2 functions into one by checking amount of arguments
  28.     CAS.UnbindAction = CAS.BindAction
  29.  
  30.     --This function will trigger the events that have been :Connect()'ed
  31.     local function te(self,ev,...)
  32.         local t = m[ev]
  33.         if t and t._fakeEvent and t.Function then
  34.             t.Function(...)
  35.         end
  36.     end
  37.     m.TrigEvent = te
  38.     UIS.TrigEvent = te
  39.  
  40.     Event.OnServerEvent:Connect(function(plr,io)
  41.         if plr~=Player then return end
  42.         if io.isMouse then
  43.             m.Target = io.Target
  44.             m.Hit = io.Hit
  45.         else
  46.             local b = io.UserInputState == Enum.UserInputState.Begin
  47.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49.             end
  50.             for _,t in pairs(CAS.Actions) do
  51.                 for _,k in pairs(t.Keys) do
  52.                     if k==io.KeyCode then
  53.                         t.Function(t.Name,io.UserInputState,io)
  54.                     end
  55.                 end
  56.             end
  57.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59.         end
  60.     end)
  61.     Event.Parent = NLS([==[
  62.     local Player = game:GetService("Players").LocalPlayer
  63.     local Event = script:WaitForChild("UserInput_Event")
  64.  
  65.     local UIS = game:GetService("UserInputService")
  66.     local input = function(io,a)
  67.         if a then return end
  68.         --Since InputObject is a client-side instance, we create and pass table instead
  69.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70.     end
  71.     UIS.InputBegan:Connect(input)
  72.     UIS.InputEnded:Connect(input)
  73.  
  74.     local Mouse = Player:GetMouse()
  75.     local h,t
  76.     --Give the server mouse data 30 times every second, but only if the values changed
  77.     --If player is not moving their mouse, client won't fire events
  78.     while wait(1/30) do
  79.         if h~=Mouse.Hit or t~=Mouse.Target then
  80.             h,t=Mouse.Hit,Mouse.Target
  81.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  82.         end
  83.     end]==],Player.Character)
  84.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. --[[
  88.  
  89. Created by Sharkringan kthx
  90.  
  91. --]]
  92.  
  93. wait(1/60)
  94.  
  95. plr = owner
  96. char = plr.Character
  97. root = char:FindFirstChild'HumanoidRootPart'
  98. hum = char:FindFirstChildOfClass'Humanoid'
  99. clones = {}
  100. followplr = true
  101. radius = 25
  102.  
  103. if char.Head:FindFirstChild'face' then
  104. char.Head.face:Destroy()
  105. end
  106.  
  107. for _, a in pairs(char:children()) do
  108. if a:IsA'Part' then
  109. a.Transparency = 1
  110. elseif a:IsA'Accessory' then
  111. a:Destroy()
  112. end
  113. end
  114.  
  115. eyes = Instance.new('Part', char)
  116. eyes.Anchored = false
  117. eyes.Name = "Eyes"
  118. eyes.Size = Vector3.new(0.22, 0.052, 0.105)
  119. eyesm = Instance.new('SpecialMesh', eyes)
  120. eyesm.Scale = Vector3.new(0.039, 0.039, 0.039)
  121. eyesm.MeshId = "rbxassetid://1300138314"
  122. eyesm.TextureId = "rbxassetid://1300129774"
  123.  
  124. body = Instance.new('Part', char)
  125. body.Anchored = false
  126. body.Name = "Body"
  127. body.Size = Vector3.new(0.07, 0.062, 0.078)
  128. bodym = Instance.new('SpecialMesh', body)
  129. bodym.Scale = Vector3.new(0.039, 0.039, 0.039)
  130. bodym.MeshId = "rbxassetid://1300136843"
  131. bodym.TextureId = "rbxassetid://1300137893"
  132.  
  133. weld1 = Instance.new('Weld', eyes)
  134. weld1.Part0 = eyes
  135. weld1.Part1 = root
  136. weld1.C0 = CFrame.new(0,1.55,.2)
  137. weld2 = Instance.new('Weld', body)
  138. weld2.Part0 = body
  139. weld2.Part1 = root
  140. weld2.C0 = CFrame.new(0,2.1,0)
  141. local music=Instance.new("Sound",char.Torso)
  142. music.SoundId="rbxassetid://1319438783"
  143. music.Volume = 2.5
  144. music.Looped=true
  145. music:Play()
  146. TheWay1 = Instance.new('Sound', body)
  147. TheWay1.SoundId = "rbxassetid://1320393438"
  148. TheWay1.Volume = 3
  149. TheWay1.Name = "TheWay1"
  150. TheWay2 = Instance.new('Sound', body)
  151. TheWay2.SoundId = "rbxassetid://1295525558"
  152. TheWay2.Volume = 3
  153. TheWay2.Name = "TheWay2"
  154. Spit = Instance.new('Sound', body)
  155. Spit.SoundId = "rbxassetid://1322795266"
  156. Spit.Volume = 3
  157. Spit.Name = "Spit"
  158. Click = Instance.new('Sound', body)
  159. Click.SoundId = "rbxassetid://1335379417"
  160. Click.Volume = 3
  161.  
  162. num = 1
  163. cooldown = false
  164. rand = math.random(1,2)
  165.  
  166. for i = 1,10 do
  167. wait()
  168. char.Archivable = true
  169. clone = char:Clone()
  170. for _, a in pairs(clone:children()) do
  171. if a.Name == "Right Arm" or a.Name == "UpperRightArm" then
  172. a:Destroy()
  173. elseif a.Name == 'Left Arm' or a.Name == 'UpperLeftArm' then
  174. a:Destroy()
  175. elseif a.Name == "Torso" or a.Name == "UpperTorso" then
  176.     if a.Sound then
  177.         a.Sound:Remove()
  178.     end
  179. end
  180. end
  181. table.insert(clones,clone)
  182. end
  183.  
  184. for _, a in pairs(clones) do
  185. a.Parent = char
  186. a:MoveTo(root.Position + Vector3.new(math.random(1,10),math.random(1,10),math.random(1,10)))
  187. end
  188.  
  189. function sfx1()
  190. for _, a in pairs(clones) do
  191. rand = math.random(1,2)
  192. if rand == 1 then
  193. a.Body['TheWay1'].Pitch = math.random(0.9,1)
  194. a.Body['TheWay1']:Play()
  195. elseif rand == 2 then
  196. a.Body['TheWay2'].Pitch = math.random(0.9,1)
  197. a.Body['TheWay2']:Play()
  198. end
  199. wait(math.random(0.4,0.6))
  200. end
  201. end
  202.  
  203. function sfx2()
  204. for _, a in pairs(clones) do
  205. a.Body.Spit.Pitch = math.random(0.9,1)
  206. a.Body.Spit:Play()
  207. wait(math.random(0.4,0.6))
  208. end
  209. end
  210.  
  211. mouse.KeyDown:connect(function(k)
  212. key = k:lower()
  213. if key == "e" and not cooldown then
  214. cooldown = true
  215. sfx1()
  216. wait(.7)
  217. cooldown = false
  218. elseif key == "r" and not cooldown then
  219. cooldown = true
  220. sfx2()
  221. wait(.7)
  222. cooldown = false
  223. end
  224. end)
  225.  
  226. plr.Chatted:connect(function(m)
  227. if string.sub(m:lower(),1,15) == "bruddas, follow" then
  228. for _,v in pairs(game:service'Players':GetPlayers()) do
  229. if string.find(v.Name:lower(),string.sub(m:lower(),17,-1)) then
  230. stalking = v
  231. else
  232. stalking = plr
  233. end
  234. end
  235. elseif string.sub(m:lower(),1,16) == "bruddas, protect" then
  236. for _,v in pairs(game:service'Players':GetPlayers()) do
  237. if string.find(v.Name:lower(),string.sub(m:lower(),18,-1)) then
  238. protecting = v
  239. else
  240. protecting = nil
  241. end
  242. end
  243. end
  244. end)
  245.  
  246. while wait(1) do
  247. number = #clones
  248. position = root.CFrame
  249. protecting = false
  250. if stalking == nil then
  251. followplr = true
  252. elseif stalking ~= nil then
  253. followplr = false
  254. end
  255. for _, a in pairs(clones) do
  256. if a:FindFirstChildOfClass'Humanoid' and followplr and not protecting then
  257. a:FindFirstChildOfClass'Humanoid':MoveTo(root.Position + Vector3.new(math.random(-10,10),0,math.random(-10,10)))
  258. end
  259. end
  260. if not protecting and not followplr and stalking ~= nil and stalking.Character:FindFirstChild'HumanoidRootPart' then
  261. for _, a in pairs(clones) do
  262. if a:FindFirstChildOfClass'Humanoid' then
  263. a:FindFirstChildOfClass'Humanoid':MoveTo(stalking.Character.HumanoidRootPart.Position + Vector3.new(math.random(-10,10),0,math.random(-10,10)))
  264. end
  265. end
  266. rand = math.random(1,10)
  267. if rand == 5 then
  268. for i = 1,3 do
  269. random = clones[math.random(1,#clones)]
  270. rand = math.random(1,2)
  271. if rand == 1 then
  272. random.Body['TheWay1']:Play()
  273. else
  274. random.Body['TheWay2']:Play()
  275. end
  276. end
  277. end
  278. end
  279. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top