Advertisement
Idirina

Death Bees

Nov 24th, 2017
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.02 KB | None | 0 0
  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. local p = owner
  90. local char = p.Character
  91. local hed = char.Head
  92. local LocalPlayer = p
  93.  
  94. local naeeym = Instance.new("BillboardGui",char)
  95. naeeym.Size = UDim2.new(0,100,0,40)
  96. naeeym.StudsOffset = Vector3.new(0,5,0)
  97. naeeym.Adornee = char.Head
  98. local tecks = Instance.new("TextLabel",naeeym)
  99. tecks.BackgroundTransparency = 1
  100. tecks.BorderSizePixel = 0
  101. tecks.Text = LocalPlayer.Name
  102. tecks.Font = "ArialBold"
  103. tecks.FontSize = "Size24"
  104. tecks.TextStrokeTransparency = 0
  105. tecks.TextStrokeColor3 = Color3.new(0,0,0)
  106. tecks.TextColor3 = Color3.new(255,255,255)
  107. tecks.Size = UDim2.new(1,0,0.5,0)
  108.  
  109. local Player = owner
  110. local Character = p.Character
  111. local LeftArm2 = Character["Left Arm"]
  112. local RightArm2 = Character["Right Arm"]
  113. local LeftLeg2 = Character["Left Leg"]
  114. local RightLeg2 = Character["Right Leg"]
  115. local Head2 = Character.Head
  116. local Torso2 = Character.Torso
  117.  
  118. --created by SoldierJoao
  119. --Credits to metabee for the knives edit
  120. cut = Instance.new("Sound", Character)
  121. cut.SoundId = "https://www.roblox.com/asset/?id=502284205"
  122. cut.Volume = 1.5
  123. thri = Instance.new("Sound", Character)
  124. thri.SoundId = "https://www.roblox.com/asset/?id=502284205"
  125. thri.Volume = 100
  126. WRY = Instance.new("Sound", Character)
  127. WRY.SoundId = "https://www.roblox.com/asset/?id=502284205"
  128. WRY.Volume = 5
  129.  
  130. local Players=game:service'Players'
  131. local Player=owner
  132. local RenderStepped=game:service'RunService'.Heartbeat
  133.  
  134. local MeshId='http://www.roblox.com/asset?id=901086988'
  135. local TextureId='http://www.roblox.com/asset/?id=901087931'
  136.  
  137. local BeeSpeed= 500
  138.  
  139. local QHold=false
  140. local EHold=false
  141.  
  142. Mouse.Button1Down:connect(function()
  143. cut:Play()
  144. if Mouse.Target then
  145. local Bee=Instance.new('Part',Player.Character)
  146. Bee.CanCollide=false
  147. Bee.Size=Vector3.new(1,1,1)
  148. Bee.CFrame=Player.Character.Torso.CFrame
  149. Bee.Anchored = false
  150. local BeeMesh=Instance.new('SpecialMesh',Bee)
  151. BeeMesh.MeshType='FileMesh'
  152. BeeMesh.MeshId=MeshId
  153. BeeMesh.TextureId=TextureId
  154. BeeMesh.Scale=Vector3.new(math.random(1,5),math.random(1,5),math.random(1,5))
  155. local BodyVel=Instance.new('BodyVelocity',Bee)
  156. BodyVel.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  157. local BodyGyro=Instance.new('BodyGyro',Bee)
  158. BodyGyro.maxTorque=Vector3.new(math.huge,math.huge,math.huge)
  159. BodyGyro.P=2e4
  160. coroutine.wrap(function()
  161. RenderStepped:connect(function()
  162. BodyGyro.cframe=CFrame.new(Bee.Position,Mouse.Hit.p + Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)))
  163. BodyVel.velocity=Bee.CFrame.lookVector*BeeSpeed
  164. end)
  165. end)()
  166. Bee.Touched:connect(function(p)
  167. if p.Parent~=Player.Character and p.Parent:FindFirstChild('Humanoid') then
  168. p.Parent:BreakJoints()
  169. local sphere = Instance.new("Part")
  170. sphere.Size = Vector3.new()
  171. sphere.CFrame = Bee.CFrame
  172. sphere.CanCollide = false
  173. sphere.BrickColor = BrickColor.new("Bright yellow")
  174. sphere.Material = "Neon"
  175. sphere.Anchored = true
  176. local mesh = Instance.new("SpecialMesh")
  177. mesh.Parent = sphere
  178. mesh.MeshType = "Sphere"
  179. sphere.Touched:connect(function(touch)
  180. if touch ~= nil then
  181. if touch.Parent ~= Player.Character then
  182. if touch.Parent.ClassName == "Accessory" then
  183. if touch.Parent.Parent ~= Player.Character then
  184. touch:Destroy()
  185. end
  186. else
  187. touch:Destroy()
  188. end
  189. end
  190. end
  191. end)
  192. sphere.Parent = workspace
  193. Bee:Destroy()
  194. for i=1,10 do
  195. sphere.Size = sphere.Size + Vector3.new(3 * i, 3 * i, 3 * i)
  196. sphere.Transparency = sphere.Transparency + (0.05 * i)
  197. wait()
  198. end
  199. sphere:Destroy()
  200. thri:Play()
  201. end
  202. end)
  203. end
  204. end)
  205.  
  206.  
  207. Mouse.KeyDown:connect(function(k)
  208. local Key=k:lower''
  209. if Key=='q'then
  210. QHold=true
  211. elseif Key=='e'then
  212. EHold=true
  213. end
  214. end)
  215.  
  216. Mouse.KeyUp:connect(function(k)
  217. local Key=k:lower''
  218. if Key=='q'then
  219. QHold=false
  220. elseif Key=='e'then
  221. EHold=false
  222. end
  223. end)
  224.  
  225. coroutine.wrap(function()
  226. RenderStepped:connect(function()
  227. if QHold then
  228. if BeeSpeed>0 then
  229. BeeSpeed=BeeSpeed-50
  230. end
  231. elseif EHold then
  232. BeeSpeed=BeeSpeed+50
  233. end
  234. end)
  235. end)()
  236.  
  237.  
  238.  
  239.  
  240. mse = Mouse
  241.  
  242. sound = Instance.new("Sound", Character)
  243. sound.SoundId = "https://www.roblox.com/asset/?id=290807425"
  244. sound.Volume = 2.5
  245. sound2 = Instance.new("Sound", Character)
  246. sound2.SoundId = "https://www.roblox.com/asset/?id=290810519"
  247. sound2.Volume = 2.5
  248. sound3 = Instance.new("Sound", Character)
  249. sound3.SoundId = "https://www.roblox.com/asset/?id=290807377"
  250. sound3.Volume = 1.8
  251. sound4 = Instance.new("Sound", Character)
  252. sound4.SoundId = "https://www.roblox.com/asset/?id=290807397"
  253. sound4.Volume = 2
  254. TSTheme = Instance.new("Sound", Character)
  255. TSTheme.SoundId = "https://www.roblox.com/asset/?id=172374380"
  256. TSTheme.Volume = 2
  257. canworld = true
  258. mse.KeyDown:connect(function(key)
  259. key = key:lower()
  260. if key == "t" then
  261. if canworld == false then return end
  262. if canworld then
  263. canworld = false
  264. sound3:Play()
  265. tecks.Text = "ZA WARUDO!"
  266. wait(2)
  267. tecks.Text = LocalPlayer.Name
  268. sound:Play()
  269. sound4:Play()
  270. TSTheme:Play()
  271.  
  272. local function spawnpart()
  273. sphere = Instance.new("Part")
  274. --game.Debris:AddItem(sphere,3)
  275. local sm = Instance.new("SpecialMesh", sphere)
  276. sm.MeshType = "Sphere"
  277. sphere.Transparency = 0.5
  278. sphere.Anchored = true
  279. sphere.CanCollide = false
  280. sphere.Material = "Neon"
  281. sphere.BrickColor = BrickColor.new("Black")
  282. end
  283.  
  284. local function weld(lol)
  285. local weld = Instance.new("Weld", Player.Character.Torso)
  286. weld.Part0 = Player.Character.Torso
  287. weld.Part1 = lol
  288. weld.C0 = Player.Character.Torso.CFrame:inverse()
  289. weld.C1 = lol.CFrame:inverse()
  290. end
  291. wait()
  292. spawnpart()
  293. weld(sphere)
  294. sphere.Parent = Character.Torso
  295. for i = 1,3 do
  296. sphere.Size = sphere.Size + Vector3.new(50,50,50)
  297. wait()
  298. end
  299. wait()
  300. sphere:Destroy()
  301. BeeSpeed = 0
  302. wait()
  303. end
  304. end
  305. end
  306. )
  307.  
  308. tecks.Text = LocalPlayer.Name
  309.  
  310. mse.KeyDown:connect(function(key)
  311. key = key:lower()
  312. if key == "y" then
  313. canworld = true
  314. tecks.Text = "Time continues moving again."
  315. sound2:Play()
  316. wait()
  317. BeeSpeed = 10
  318. wait(0.5)
  319. BeeSpeed = 20
  320. wait(0.5)
  321. BeeSpeed = 40
  322. wait(0.3)
  323. BeeSpeed = 70
  324. wait(0.2)
  325. BeeSpeed = 500
  326. tecks.Text = LocalPlayer.Name
  327. TSTheme:Stop()
  328. end
  329. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement