Advertisement
ghostteen14

Untitled

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