Advertisement
Guest User

Dio Time Stop Knives

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