AzeroRed11

test of knifes

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