Advertisement
sneakydodge123

timee

Aug 31st, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.31 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. self._btrs[name] = self.Heartbeat:Connect(fun)
  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.  
  146. local p = game.Players.LocalPlayer
  147. local char = p.Character
  148. local hed = char.Head
  149. local LocalPlayer = p
  150.  
  151. local naeeym = Instance.new('BillboardGui',char)
  152. naeeym.Size = UDim2.new(0,100,0,40)
  153. naeeym.StudsOffset = Vector3.new(0,5,0)
  154. naeeym.Adornee = char.Head
  155. local tecks = Instance.new('TextLabel',naeeym)
  156. tecks.BackgroundTransparency = 1
  157. tecks.BorderSizePixel = 0
  158. tecks.Text = LocalPlayer.Name
  159. tecks.Font = 'ArialBold'
  160. tecks.FontSize = 'Size24'
  161. tecks.TextStrokeTransparency = 0
  162. tecks.TextStrokeColor3 = Color3.new(0,0,0)
  163. tecks.TextColor3 = Color3.new(255,255,255)
  164. tecks.Size = UDim2.new(1,0,0.5,0)
  165.  
  166. local Player = game.Players.localPlayer
  167. local Character = p.Character
  168. local LeftArm2 = Character['Left Arm']
  169. local RightArm2 = Character['Right Arm']
  170. local LeftLeg2 = Character['Left Leg']
  171. local RightLeg2 = Character['Right Leg']
  172. local Head2 = Character.Head
  173. local Torso2 = Character.Torso
  174.  
  175. --created by SoldierJoao
  176. --Credits to metabee for the knives edit
  177. cut = Instance.new('Sound', Character)
  178. cut.SoundId = 'https://www.roblox.com/asset/?id=97095069'
  179. cut.Volume = 1.5
  180. thri = Instance.new('Sound', Character)
  181. thri.SoundId = 'https://www.roblox.com/asset/?id=186311262'
  182. thri.Volume = 2.5
  183. WRY = Instance.new('Sound', Character)
  184. WRY.SoundId = 'https://www.roblox.com/asset/?id=276152532'
  185. WRY.Volume = 5
  186.  
  187. local Players=game:service'Players'
  188. local Player=Players.LocalPlayer
  189. local Mouse=Player:GetMouse''
  190. local RenderStepped=game:service'RunService'.RenderStepped
  191.  
  192. local MeshId='http://www.roblox.com/asset?id=202083123'
  193. local TextureId='http://www.roblox.com/asset/?id=189436355'
  194.  
  195. local BeeSpeed= 100
  196.  
  197. local QHold=false
  198. local EHold=false
  199.  
  200. Mouse.Button1Down:connect(function()
  201. cut:Play()
  202. if Mouse.Target then
  203. local Bee=Instance.new('Part',Player.Character)
  204. Bee.CanCollide=false
  205. Bee.Size=Vector3.new(2,2,2)
  206. Bee.CFrame=Player.Character.Torso.CFrame
  207. local BeeMesh=Instance.new('SpecialMesh',Bee)
  208. BeeMesh.MeshType='FileMesh'
  209. BeeMesh.MeshId=MeshId
  210. BeeMesh.TextureId=TextureId
  211. BeeMesh.Scale=Vector3.new(1,1,1)
  212. local BodyVel=Instance.new('BodyVelocity',Bee)
  213. BodyVel.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  214. local BodyGyro=Instance.new('BodyGyro',Bee)
  215. BodyGyro.maxTorque=Vector3.new(math.huge,math.huge,math.huge)
  216. BodyGyro.P=2e4
  217. coroutine.wrap(function()
  218. RenderStepped:connect(function()
  219. BodyGyro.cframe=CFrame.new(Bee.Position,Mouse.Hit.p)
  220. BodyVel.velocity=Bee.CFrame.lookVector*BeeSpeed
  221. end)
  222. end)()
  223. Bee.Touched:connect(function(p)
  224. if p.Parent~=Player.Character and p.Parent:FindFirstChild'Humanoid'then
  225. p.Parent:BreakJoints()
  226. Bee:Destroy''
  227. thri:Play()
  228. end
  229. end)
  230. end
  231. end)
  232.  
  233.  
  234. Mouse.KeyDown:connect(function(k)
  235. local Key=k:lower''
  236. if Key=='q'then
  237. QHold=true
  238. elseif Key=='e'then
  239. EHold=true
  240. end
  241. end)
  242.  
  243. Mouse.KeyUp:connect(function(k)
  244. local Key=k:lower''
  245. if Key=='q'then
  246. QHold=false
  247. elseif Key=='e'then
  248. EHold=false
  249. end
  250. end)
  251.  
  252. coroutine.wrap(function()
  253. RenderStepped:connect(function()
  254. if QHold then
  255. if BeeSpeed>0 then
  256. BeeSpeed=BeeSpeed-1
  257. end
  258. elseif EHold then
  259. BeeSpeed=BeeSpeed+1
  260. end
  261. end)
  262. end)()
  263.  
  264.  
  265.  
  266.  
  267. mse = Player:GetMouse()
  268.  
  269. sound = Instance.new('Sound', Character)
  270. sound.SoundId = 'https://www.roblox.com/asset/?id=290807425'
  271. sound.Volume = 2.5
  272. sound2 = Instance.new('Sound', Character)
  273. sound2.SoundId = 'https://www.roblox.com/asset/?id=290810519'
  274. sound2.Volume = 2.5
  275. sound3 = Instance.new('Sound', Character)
  276. sound3.SoundId = 'https://www.roblox.com/asset/?id=290807377'
  277. sound3.Volume = 1.8
  278. sound4 = Instance.new('Sound', Character)
  279. sound4.SoundId = 'https://www.roblox.com/asset/?id=290807397'
  280. sound4.Volume = 2
  281. TSTheme = Instance.new('Sound', Character)
  282. TSTheme.SoundId = 'https://www.roblox.com/asset/?id=172374380'
  283. TSTheme.Volume = 2
  284. canworld = true
  285. mse.KeyDown:connect(function(key)
  286. key = key:lower()
  287. if key == 't' then
  288. if canworld == false then return end
  289. if canworld then
  290. canworld = false
  291. sound3:Play()
  292. tecks.Text = 'THE WORLD STOP TIME!'
  293. wait(2)
  294. tecks.Text = LocalPlayer.Name
  295. sound:Play()
  296. sound4:Play()
  297. TSTheme:Play()
  298.  
  299. local function spawnpart()
  300. sphere = Instance.new('Part')
  301. --game.Debris:AddItem(sphere,3)
  302. local sm = Instance.new('SpecialMesh', sphere)
  303. sm.MeshType = 'Sphere'
  304. sphere.Transparency = 0.5
  305. sphere.Anchored = true
  306. sphere.CanCollide = false
  307. sphere.Material = 'Neon'
  308. sphere.BrickColor = BrickColor.new('Black')
  309. end
  310.  
  311. local function weld(lol)
  312. local weld = Instance.new('Weld', Player.Character.Torso)
  313. weld.Part0 = Player.Character.Torso
  314. weld.Part1 = lol
  315. weld.C0 = Player.Character.Torso.CFrame:inverse()
  316. weld.C1 = lol.CFrame:inverse()
  317. end
  318. wait()
  319. spawnpart()
  320. for i, v in pairs(game.Players:GetChildren()) do
  321. t = v.Character:FindFirstChild('Torso')
  322. if t then
  323. t.Anchored = true
  324. Player.Character:FindFirstChild('Torso').Anchored = false
  325. end
  326. RA = v.Character:FindFirstChild('Right Arm')
  327. if RA then
  328. RA.Anchored = true
  329. Player.Character:FindFirstChild('Right Arm').Anchored = false
  330. end
  331. LA = v.Character:FindFirstChild('Left Arm')
  332. if LA then
  333. LA.Anchored = true
  334. Player.Character:FindFirstChild('Left Arm').Anchored = false
  335. end
  336. RL = v.Character:FindFirstChild('Right Leg')
  337. if RL then
  338. RL.Anchored = true
  339. Player.Character:FindFirstChild('Right Leg').Anchored = false
  340. end
  341. LL = v.Character:FindFirstChild('Left Leg')
  342. if LL then
  343. LL.Anchored = true
  344. Player.Character:FindFirstChild('Left Leg').Anchored = false
  345. end
  346. end
  347. weld(sphere)
  348. cce = Instance.new('ColorCorrectionEffect', game.Lighting)
  349. cce.Saturation = -5
  350. --game.Debris:AddItem(cce, 5)
  351. sphere.Parent = Character.Torso
  352. for i = 1,3 do
  353. sphere.Size = sphere.Size + Vector3.new(50,50,50)
  354. wait()
  355. end
  356. wait()
  357. sphere:Destroy()
  358. BeeSpeed = 0
  359. cce.Saturation = -0.1
  360. wait(0.3)
  361. cce.Saturation = -0.2
  362. wait(0.3)
  363. cce.Saturation = -0.3
  364. wait(0.2)
  365. cce.Saturation = -1.5
  366. wait()
  367. end
  368. end
  369. end
  370. )
  371.  
  372. tecks.Text = LocalPlayer.Name
  373.  
  374. mse.KeyDown:connect(function(key)
  375. key = key:lower()
  376. if key == 'y' then
  377. canworld = true
  378. tecks.Text = 'Time continues moving again.'
  379. sound2:Play()
  380. wait()
  381. BeeSpeed = 1
  382. cce.Saturation = -1.3
  383. wait(0.5)
  384. BeeSpeed = 1.2
  385. cce.Saturation = -0.5
  386. wait(0.5)
  387. BeeSpeed = 1.4
  388. cce.Saturation = -0.4
  389. wait(0.3)
  390. BeeSpeed = 1.5
  391. cce.Saturation = -0.2
  392. wait(0.2)
  393. cce.Saturation = 0
  394.  
  395. for i, v in pairs(game.Players:GetChildren()) do
  396. t = v.Character:FindFirstChild('Torso')
  397. if t then
  398. t.Anchored = false
  399. end
  400. RA = v.Character:FindFirstChild('Right Arm')
  401. if RA then
  402. RA.Anchored = false
  403. end
  404. LA = v.Character:FindFirstChild('Left Arm')
  405. if LA then
  406. LA.Anchored = false
  407. end
  408. RL = v.Character:FindFirstChild('Right Leg')
  409. if RL then
  410. RL.Anchored = false
  411. end
  412. LL = v.Character:FindFirstChild('Left Leg')
  413. if LL then
  414. LL.Anchored = false
  415. end
  416. end
  417. BeeSpeed = 100
  418. tecks.Text = LocalPlayer.Name
  419. TSTheme:Stop()
  420. end
  421. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement