Userguyinbin

Dio knife fe

May 5th, 2019
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.40 KB | None | 0 0
  1. local p = game.Players.LocalPlayer
  2. local char = p.Character
  3. local hed = char.Head
  4. local LocalPlayer = p
  5.  
  6. local naeeym = Instance.new("BillboardGui",char)
  7. naeeym.Size = UDim2.new(0,100,0,40)
  8. naeeym.StudsOffset = Vector3.new(0,5,0)
  9. naeeym.Adornee = char.Head
  10. local tecks = Instance.new("TextLabel",naeeym)
  11. tecks.BackgroundTransparency = 1
  12. tecks.BorderSizePixel = 0
  13. tecks.Text = LocalPlayer.Name
  14. tecks.Font = "ArialBold"
  15. tecks.FontSize = "Size24"
  16. tecks.TextStrokeTransparency = 0
  17. tecks.TextStrokeColor3 = Color3.new(0,0,0)
  18. tecks.TextColor3 = Color3.new(255,255,255)
  19. tecks.Size = UDim2.new(1,0,0.5,0)
  20.  
  21. local Player = game.Players.localPlayer
  22. local Character = p.Character
  23. local LeftArm2 = Character["Left Arm"]
  24. local RightArm2 = Character["Right Arm"]
  25. local LeftLeg2 = Character["Left Leg"]
  26. local RightLeg2 = Character["Right Leg"]
  27. local Head2 = Character.Head
  28. local Torso2 = Character.Torso
  29.  
  30. --created by SoldierJoao
  31. --Credits to metabee for the knives edit
  32. cut = Instance.new("Sound", Character)
  33. cut.SoundId = "https://www.roblox.com/asset/?id=97095069"
  34. cut.Volume = 1.5
  35. thri = Instance.new("Sound", Character)
  36. thri.SoundId = "https://www.roblox.com/asset/?id=186311262"
  37. thri.Volume = 2.5
  38. WRY = Instance.new("Sound", Character)
  39. WRY.SoundId = "https://www.roblox.com/asset/?id=276152532"
  40. WRY.Volume = 5
  41.  
  42. local Players=game:service'Players'
  43. local Player=Players.LocalPlayer
  44. local Mouse=Player:GetMouse''
  45. local RenderStepped=game:service'RunService'.RenderStepped
  46.  
  47. local MeshId='http://www.roblox.com/asset?id=202083123'
  48. local TextureId='http://www.roblox.com/asset/?id=189436355'
  49.  
  50. local BeeSpeed= 100
  51.  
  52. local QHold=false
  53. local EHold=false
  54.  
  55. Mouse.Button1Down:connect(function()
  56. cut:Play()
  57. if Mouse.Target then
  58. local Bee=Instance.new('Part',Player.Character)
  59. Bee.CanCollide=false
  60. Bee.Size=Vector3.new(2,2,2)
  61. Bee.CFrame=Player.Character.Torso.CFrame
  62. local BeeMesh=Instance.new('SpecialMesh',Bee)
  63. BeeMesh.MeshType='FileMesh'
  64. BeeMesh.MeshId=MeshId
  65. BeeMesh.TextureId=TextureId
  66. BeeMesh.Scale=Vector3.new(1,1,1)
  67. local BodyVel=Instance.new('BodyVelocity',Bee)
  68. BodyVel.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  69. local BodyGyro=Instance.new('BodyGyro',Bee)
  70. BodyGyro.maxTorque=Vector3.new(math.huge,math.huge,math.huge)
  71. BodyGyro.P=2e4
  72. coroutine.wrap(function()
  73. RenderStepped:connect(function()
  74. BodyGyro.cframe=CFrame.new(Bee.Position,Mouse.Hit.p)
  75. BodyVel.velocity=Bee.CFrame.lookVector*BeeSpeed
  76. end)
  77. end)()
  78. Bee.Touched:connect(function(p)
  79. if p.Parent~=Player.Character and p.Parent:FindFirstChild'Humanoid'then
  80. p.Parent:BreakJoints()
  81. Bee:Destroy''
  82. thri:Play()
  83. end
  84. end)
  85. end
  86. end)
  87.  
  88.  
  89. Mouse.KeyDown:connect(function(k)
  90. local Key=k:lower''
  91. if Key=='q'then
  92. QHold=true
  93. elseif Key=='e'then
  94. EHold=true
  95. end
  96. end)
  97.  
  98. Mouse.KeyUp:connect(function(k)
  99. local Key=k:lower''
  100. if Key=='q'then
  101. QHold=false
  102. elseif Key=='e'then
  103. EHold=false
  104. end
  105. end)
  106.  
  107. coroutine.wrap(function()
  108. RenderStepped:connect(function()
  109. if QHold then
  110. if BeeSpeed>0 then
  111. BeeSpeed=BeeSpeed-1
  112. end
  113. elseif EHold then
  114. BeeSpeed=BeeSpeed+1
  115. end
  116. end)
  117. end)()
  118.  
  119.  
  120.  
  121.  
  122. mse = Player:GetMouse()
  123.  
  124. sound = Instance.new("Sound", Character)
  125. sound.SoundId = "https://www.roblox.com/asset/?id=290807425"
  126. sound.Volume = 2.5
  127. sound2 = Instance.new("Sound", Character)
  128. sound2.SoundId = "https://www.roblox.com/asset/?id=290810519"
  129. sound2.Volume = 2.5
  130. sound3 = Instance.new("Sound", Character)
  131. sound3.SoundId = "https://www.roblox.com/asset/?id=290807377"
  132. sound3.Volume = 1.8
  133. sound4 = Instance.new("Sound", Character)
  134. sound4.SoundId = "https://www.roblox.com/asset/?id=290807397"
  135. sound4.Volume = 2
  136. TSTheme = Instance.new("Sound", Character)
  137. TSTheme.SoundId = "https://www.roblox.com/asset/?id=172374380"
  138. TSTheme.Volume = 2
  139. canworld = true
  140. mse.KeyDown:connect(function(key)
  141. key = key:lower()
  142. if key == "t" then
  143. if canworld == false then return end
  144. if canworld then
  145. canworld = false
  146. sound3:Play()
  147. tecks.Text = "THE WORLD STOP TIME!"
  148. wait(2)
  149. tecks.Text = LocalPlayer.Name
  150. sound:Play()
  151. sound4:Play()
  152. TSTheme:Play()
  153.  
  154. local function spawnpart()
  155. sphere = Instance.new("Part")
  156. --game.Debris:AddItem(sphere,3)
  157. local sm = Instance.new("SpecialMesh", sphere)
  158. sm.MeshType = "Sphere"
  159. sphere.Transparency = 0.5
  160. sphere.Anchored = true
  161. sphere.CanCollide = false
  162. sphere.Material = "Neon"
  163. sphere.BrickColor = BrickColor.new("Black")
  164. end
  165.  
  166. local function weld(lol)
  167. local weld = Instance.new("Weld", Player.Character.Torso)
  168. weld.Part0 = Player.Character.Torso
  169. weld.Part1 = lol
  170. weld.C0 = Player.Character.Torso.CFrame:inverse()
  171. weld.C1 = lol.CFrame:inverse()
  172. end
  173. wait()
  174. spawnpart()
  175. for i, v in pairs(game.Players:GetChildren()) do
  176. t = v.Character:FindFirstChild("Torso")
  177. if t then
  178. t.Anchored = true
  179. Player.Character:FindFirstChild("Torso").Anchored = false
  180. end
  181. RA = v.Character:FindFirstChild("Right Arm")
  182. if RA then
  183. RA.Anchored = true
  184. Player.Character:FindFirstChild("Right Arm").Anchored = false
  185. end
  186. LA = v.Character:FindFirstChild("Left Arm")
  187. if LA then
  188. LA.Anchored = true
  189. Player.Character:FindFirstChild("Left Arm").Anchored = false
  190. end
  191. RL = v.Character:FindFirstChild("Right Leg")
  192. if RL then
  193. RL.Anchored = true
  194. Player.Character:FindFirstChild("Right Leg").Anchored = false
  195. end
  196. LL = v.Character:FindFirstChild("Left Leg")
  197. if LL then
  198. LL.Anchored = true
  199. Player.Character:FindFirstChild("Left Leg").Anchored = false
  200. end
  201. end
  202. weld(sphere)
  203. cce = Instance.new("ColorCorrectionEffect", game.Lighting)
  204. cce.Saturation = -5
  205. --game.Debris:AddItem(cce, 5)
  206. sphere.Parent = Character.Torso
  207. for i = 1,3 do
  208. sphere.Size = sphere.Size + Vector3.new(50,50,50)
  209. wait()
  210. end
  211. wait()
  212. sphere:Destroy()
  213. BeeSpeed = 0
  214. cce.Saturation = -0.1
  215. wait(0.3)
  216. cce.Saturation = -0.2
  217. wait(0.3)
  218. cce.Saturation = -0.3
  219. wait(0.2)
  220. cce.Saturation = -1.5
  221. wait()
  222. end
  223. end
  224. end
  225. )
  226.  
  227. tecks.Text = LocalPlayer.Name
  228.  
  229. mse.KeyDown:connect(function(key)
  230. key = key:lower()
  231. if key == "y" then
  232. canworld = true
  233. tecks.Text = "Time continues moving again."
  234. sound2:Play()
  235. wait()
  236. BeeSpeed = 1
  237. cce.Saturation = -1.3
  238. wait(0.5)
  239. BeeSpeed = 1.2
  240. cce.Saturation = -0.5
  241. wait(0.5)
  242. BeeSpeed = 1.4
  243. cce.Saturation = -0.4
  244. wait(0.3)
  245. BeeSpeed = 1.5
  246. cce.Saturation = -0.2
  247. wait(0.2)
  248. cce.Saturation = 0
  249.  
  250. for i, v in pairs(game.Players:GetChildren()) do
  251. t = v.Character:FindFirstChild("Torso")
  252. if t then
  253. t.Anchored = false
  254. end
  255. RA = v.Character:FindFirstChild("Right Arm")
  256. if RA then
  257. RA.Anchored = false
  258. end
  259. LA = v.Character:FindFirstChild("Left Arm")
  260. if LA then
  261. LA.Anchored = false
  262. end
  263. RL = v.Character:FindFirstChild("Right Leg")
  264. if RL then
  265. RL.Anchored = false
  266. end
  267. LL = v.Character:FindFirstChild("Left Leg")
  268. if LL then
  269. LL.Anchored = false
  270. end
  271. end
  272. BeeSpeed = 100
  273. tecks.Text = LocalPlayer.Name
  274. TSTheme:Stop()
  275. --https://github.com/Mokiros/roblox-FE-compatibility
  276. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  277. local Player,game,owner = owner,game
  278. local RealPlayer = Player
  279. do
  280. print("FE Compatibility code V2 by Mokiros")
  281. local RealPlayer = RealPlayer
  282. script.Parent = RealPlayer.Character
  283.  
  284. --Fake event to make stuff like Mouse.KeyDown work
  285. local Disconnect_Function = function(this)
  286. this[1].Functions[this[2]] = nil
  287. end
  288. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  289. local FakeEvent_Metatable = {__index={
  290. Connect = function(this,f)
  291. local i = tostring(math.random(0,10000))
  292. while this.Functions[i] do
  293. i = tostring(math.random(0,10000))
  294. end
  295. this.Functions[i] = f
  296. return setmetatable({this,i},Disconnect_Metatable)
  297. end
  298. }}
  299. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  300. local function fakeEvent()
  301. return setmetatable({Functions={}},FakeEvent_Metatable)
  302. end
  303.  
  304. --Creating fake input objects with fake variables
  305. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  306. FakeMouse.keyUp = FakeMouse.KeyUp
  307. FakeMouse.keyDown = FakeMouse.KeyDown
  308. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  309. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  310. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  311. end}
  312. --Merged 2 functions into one by checking amount of arguments
  313. CAS.UnbindAction = CAS.BindAction
  314.  
  315. --This function will trigger the events that have been :Connect()'ed
  316. local function TriggerEvent(self,ev,...)
  317. for _,f in pairs(self[ev].Functions) do
  318. f(...)
  319. end
  320. end
  321. FakeMouse.TriggerEvent = TriggerEvent
  322. UIS.TriggerEvent = TriggerEvent
  323.  
  324. --Client communication
  325. local Event = Instance.new("RemoteEvent")
  326. Event.Name = "UserInput_Event"
  327. Event.OnServerEvent:Connect(function(plr,io)
  328. if plr~=RealPlayer then return end
  329. FakeMouse.Target = io.Target
  330. FakeMouse.Hit = io.Hit
  331. if not io.isMouse then
  332. local b = io.UserInputState == Enum.UserInputState.Begin
  333. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  334. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  335. end
  336. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  337. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  338. end
  339. for _,t in pairs(CAS.Actions) do
  340. for _,k in pairs(t.Keys) do
  341. if k==io.KeyCode then
  342. t.Function(t.Name,io.UserInputState,io)
  343. end
  344. end
  345. end
  346. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  347. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  348. end
  349. end)
  350. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  351. local Mouse = owner:GetMouse()
  352. local UIS = game:GetService("UserInputService")
  353. local input = function(io,RobloxHandled)
  354. if RobloxHandled then return end
  355. --Since InputObject is a client-side instance, we create and pass table instead
  356. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  357. end
  358. UIS.InputBegan:Connect(input)
  359. UIS.InputEnded:Connect(input)
  360. local h,t
  361. --Give the server mouse data every second frame, but only if the values changed
  362. --If player is not moving their mouse, client won't fire events
  363. local HB = game:GetService("RunService").Heartbeat
  364. while true do
  365. if h~=Mouse.Hit or t~=Mouse.Target then
  366. h,t=Mouse.Hit,Mouse.Target
  367. Event:FireServer({isMouse=true,Target=t,Hit=h})
  368. end
  369. --Wait 2 frames
  370. for i=1,2 do
  371. HB:Wait()
  372. end
  373. end]==],script)
  374.  
  375. ----Sandboxed game object that allows the usage of client-side methods and services
  376. --Real game object
  377. local RealGame = game
  378.  
  379. --Metatable for fake service
  380. local FakeService_Metatable = {
  381. __index = function(self,k)
  382. local s = rawget(self,"_RealService")
  383. if s then
  384. return typeof(s[k])=="function"
  385. and function(_,...)return s[k](s,...)end or s[k]
  386. end
  387. end,
  388. __newindex = function(self,k,v)
  389. local s = rawget(self,"_RealService")
  390. if s then s[k]=v end
  391. end
  392. }
  393. local function FakeService(t,RealService)
  394. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  395. return setmetatable(t,FakeService_Metatable)
  396. end
  397.  
  398. --Fake game object
  399. local FakeGame = {
  400. GetService = function(self,s)
  401. return rawget(self,s) or RealGame:GetService(s)
  402. end,
  403. Players = FakeService({
  404. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  405. },"Players"),
  406. UserInputService = FakeService(UIS,"UserInputService"),
  407. ContextActionService = FakeService(CAS,"ContextActionService"),
  408. RunService = FakeService({
  409. _btrs = {},
  410. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  411. BindToRenderStep = function(self,name,_,fun)
  412. self._btrs[name] = self.Heartbeat:Connect(fun)
  413. end,
  414. UnbindFromRenderStep = function(self,name)
  415. self._btrs[name]:Disconnect()
  416. end,
  417. },"RunService")
  418. }
  419. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  420. FakeGame.service = FakeGame.GetService
  421. FakeService(FakeGame,game)
  422. --Changing owner to fake player object to support owner:GetMouse()
  423. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  424. end
Advertisement
Add Comment
Please, Sign In to add comment