Hugo1234cool

Untitled

Mar 4th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.68 KB | None | 0 0
  1. --// Script made by Cronizete
  2. --// Please dont check the code its ugly
  3. --// Who ever has this and youre not the maker of this script then you just stole it unless I released it to the public or whatever but yeah
  4. --// Please, if you're going to showcase this. Make sure to give credits to me :D
  5. --// Anyways, enjoy the script!!!!!!!!!!!!!!!
  6.  
  7. --https://github.com/Mokiros/roblox-FE-compatibility
  8. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  9. local Player,game,owner = owner,game
  10. local RealPlayer = Player
  11. do
  12. print("FE Compatibility code V2 by Mokiros")
  13. local RealPlayer = RealPlayer
  14. script.Parent = RealPlayer.Character
  15.  
  16. --Fake event to make stuff like Mouse.KeyDown work
  17. local Disconnect_Function = function(this)
  18. this[1].Functions[this[2]] = nil
  19. end
  20. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  21. local FakeEvent_Metatable = {__index={
  22. Connect = function(this,f)
  23. local i = tostring(math.random(0,10000))
  24. while this.Functions[i] do
  25. i = tostring(math.random(0,10000))
  26. end
  27. this.Functions[i] = f
  28. return setmetatable({this,i},Disconnect_Metatable)
  29. end
  30. }}
  31. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  32. local function fakeEvent()
  33. return setmetatable({Functions={}},FakeEvent_Metatable)
  34. end
  35.  
  36. --Creating fake input objects with fake variables
  37. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  38. FakeMouse.keyUp = FakeMouse.KeyUp
  39. FakeMouse.keyDown = FakeMouse.KeyDown
  40. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  41. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  42. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  43. end}
  44. --Merged 2 functions into one by checking amount of arguments
  45. CAS.UnbindAction = CAS.BindAction
  46.  
  47. --This function will trigger the events that have been :Connect()'ed
  48. local function TriggerEvent(self,ev,...)
  49. for _,f in pairs(self[ev].Functions) do
  50. f(...)
  51. end
  52. end
  53. FakeMouse.TriggerEvent = TriggerEvent
  54. UIS.TriggerEvent = TriggerEvent
  55.  
  56. --Client communication
  57. local Event = Instance.new("RemoteEvent")
  58. Event.Name = "UserInput_Event"
  59. Event.OnServerEvent:Connect(function(plr,io)
  60. if plr~=RealPlayer then return end
  61. FakeMouse.Target = io.Target
  62. FakeMouse.Hit = io.Hit
  63. if not io.isMouse then
  64. local b = io.UserInputState == Enum.UserInputState.Begin
  65. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  66. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  67. end
  68. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  69. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  70. end
  71. for _,t in pairs(CAS.Actions) do
  72. for _,k in pairs(t.Keys) do
  73. if k==io.KeyCode then
  74. t.Function(t.Name,io.UserInputState,io)
  75. end
  76. end
  77. end
  78. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  79. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  80. end
  81. end)
  82. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  83. local Mouse = owner:GetMouse()
  84. local UIS = game:GetService("UserInputService")
  85. local input = function(io,RobloxHandled)
  86. if RobloxHandled then return end
  87. --Since InputObject is a client-side instance, we create and pass table instead
  88. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  89. end
  90. UIS.InputBegan:Connect(input)
  91. UIS.InputEnded:Connect(input)
  92.  
  93. local h,t
  94. --Give the server mouse data every second frame, but only if the values changed
  95. --If player is not moving their mouse, client won't fire events
  96. local HB = game:GetService("RunService").Heartbeat
  97. while true do
  98. if h~=Mouse.Hit or t~=Mouse.Target then
  99. h,t=Mouse.Hit,Mouse.Target
  100. Event:FireServer({isMouse=true,Target=t,Hit=h})
  101. end
  102. --Wait 2 frames
  103. for i=1,2 do
  104. HB:Wait()
  105. end
  106. end]==],script)
  107.  
  108. ----Sandboxed game object that allows the usage of client-side methods and services
  109. --Real game object
  110. local RealGame = game
  111.  
  112. --Metatable for fake service
  113. local FakeService_Metatable = {
  114. __index = function(self,k)
  115. local s = rawget(self,"_RealService")
  116. if s then
  117. return typeof(s[k])=="function"
  118. and function(_,...)return s[k](s,...)end or s[k]
  119. end
  120. end,
  121. __newindex = function(self,k,v)
  122. local s = rawget(self,"_RealService")
  123. if s then s[k]=v end
  124. end
  125. }
  126. local function FakeService(t,RealService)
  127. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  128. return setmetatable(t,FakeService_Metatable)
  129. end
  130.  
  131. --Fake game object
  132. local FakeGame = {
  133. GetService = function(self,s)
  134. return rawget(self,s) or RealGame:GetService(s)
  135. end,
  136. Players = FakeService({
  137. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  138. },"Players"),
  139. UserInputService = FakeService(UIS,"UserInputService"),
  140. ContextActionService = FakeService(CAS,"ContextActionService"),
  141. RunService = FakeService({
  142. _btrs = {},
  143. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  144. BindToRenderStep = function(self,name,_,fun)
  145. self._btrs[name] = self.Heartbeat:Connect(fun)
  146. end,
  147. UnbindFromRenderStep = function(self,name)
  148. self._btrs[name]:Disconnect()
  149. end,
  150. },"RunService")
  151. }
  152. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  153. FakeGame.service = FakeGame.GetService
  154. FakeService(FakeGame,game)
  155. --Changing owner to fake player object to support owner:GetMouse()
  156. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  157. end
  158. plr =owner
  159. char = plr.Character
  160. ff = Instance.new('ForceField', char)
  161. ff.Visible = false
  162. mouse = plr:GetMouse()
  163. human = char.Humanoid
  164. torso = char.Torso
  165. root = char.HumanoidRootPart
  166. lleg = char["Left Leg"]
  167. rleg = char["Right Leg"]
  168. larm = char["Left Arm"]
  169. rarm = char["Right Arm"]
  170. head = char.Head
  171. lshold = torso["Left Shoulder"]
  172. rshold = torso["Right Shoulder"]
  173. neck = torso.Neck
  174. lhip = torso["Left Hip"]
  175. rhip = torso["Right Hip"]
  176. lscf = lshold.C0
  177. rscf = rshold.C0
  178. ncf = neck.C0
  179. lhcf = lhip.C0
  180. rhcf = rhip.C0
  181. rad = math.rad
  182. random = math.random
  183. sin = math.sin
  184. cos = math.cos
  185. floor = math.floor
  186. lsho = lshold.C0
  187. rsho = rshold.C0
  188. cd1 = true
  189. cd2 = true
  190.  
  191. function harmlessexplo()
  192. sph = Instance.new('Part', char)
  193. sph.Anchored = true
  194. sph.CFrame = char.Torso.CFrame
  195. sph.CanCollide = false
  196. sph.Anchored = true
  197. sph.Transparency = 0
  198. sph.Material = "Neon"
  199. sph.Shape = "Ball"
  200. sph.Size = Vector3.new(0.2,0.2,0.2)
  201. for i = 1,50 do
  202. wait()
  203. sph.Size = sph.Size + Vector3.new(4,4,4)
  204. sph.Transparency = sph.Transparency + 0.05
  205. sph.CFrame = char.Torso.CFrame
  206. end
  207. sph:Destroy()
  208. end
  209.  
  210. function entrance()
  211.  
  212. for _,q in pairs(char:GetChildren()) do
  213. if q:IsA('Accessory') then
  214. q:Destroy()
  215. end
  216.  
  217. a = Instance.new('CharacterMesh', game.Players.LocalPlayer.Character)
  218. a.MeshId = "279174949"
  219. a.BodyPart = "LeftArm"
  220.  
  221. a = Instance.new('CharacterMesh', game.Players.LocalPlayer.Character)
  222. a.MeshId = "319336109"
  223. a.BodyPart = "LeftLeg"
  224.  
  225. a = Instance.new('CharacterMesh', game.Players.LocalPlayer.Character)
  226. a.MeshId = "279174886"
  227. a.BodyPart = "RightArm"
  228.  
  229. a = Instance.new('CharacterMesh', game.Players.LocalPlayer.Character)
  230. a.MeshId = "319336155"
  231. a.BodyPart = "RightLeg"
  232.  
  233. a = Instance.new('CharacterMesh', game.Players.LocalPlayer.Character)
  234. a.MeshId = "376169183"
  235. a.BodyPart = "Torso"
  236.  
  237. if q:IsA('Shirt') then
  238. q.ShirtTemplate = "rbxassetid://704100781"
  239. end
  240.  
  241. if q:IsA('Pants') then
  242. q.PantsTemplate = "rbxassetid://704102680"
  243. end
  244.  
  245. char["Left Arm"].BrickColor = BrickColor.new('Cyan')
  246. char["Right Arm"].BrickColor = BrickColor.new('Cyan')
  247.  
  248. if q.Name ~= "HumanoidRootPart" and q:IsA('Part') then
  249. q.Transparency = 1
  250. end
  251. end
  252.  
  253. char.Humanoid.HipHeight = 60
  254. wait(.05)
  255. char.Torso.Anchored = true
  256.  
  257. sph = Instance.new('Part', char)
  258. sph.Anchored = true
  259. sph.CFrame = char.Torso.CFrame
  260. sph.CanCollide = false
  261. sph.Anchored = true
  262. sph.Transparency = 0
  263. sph.Material = "Neon"
  264. sph.Shape = "Ball"
  265. sph.Size = Vector3.new(0.2,0.2,0.2)
  266. sp = Instance.new('SpecialMesh', sph)
  267. sp.MeshId = "http://www.roblox.com/Asset/?id=9982590"
  268. sp.Scale = Vector3.new(0.2,0.2,0.2)
  269. a = 0
  270.  
  271. for i = 1, 25 do
  272. sph.Color = Color3.new(math.random(1,255),math.random(1,255),math.random(1,255))
  273. sp.Scale = sp.Scale + Vector3.new(0.3,0.3,0.3)
  274. sph.Rotation = Vector3.new( a, a, a)
  275. wait()
  276. a = a+3
  277. end
  278. for _,e in pairs(char:GetChildren()) do
  279. if e:IsA('Accessory') then
  280. e.Handle.Transparency = 0
  281. end
  282. if e.Name ~= "HumanoidRootPart" and e:IsA('Part') then
  283. e.Transparency = 0
  284. end
  285. end
  286. for i = 1, 115 do
  287. sph.Color = Color3.new(math.random(1,255),math.random(1,255),math.random(1,255))
  288. sph.Transparency = sph.Transparency + 0.01
  289. sph.Rotation = Vector3.new( a, a, a)
  290. wait()
  291. a = a+15
  292. end
  293. char.Torso.Anchored = false
  294. char.Humanoid.HipHeight = 0
  295. end
  296.  
  297. function chat(chatt)
  298. local text = Instance.new("BillboardGui", game.Players.LocalPlayer.Character)
  299. text.Size = UDim2.new(0,100,0,40)
  300. text.StudsOffset = Vector3.new(0,3,0)
  301. text.Adornee = game.Players.LocalPlayer.Character.Head
  302. text.Name = "1"
  303. local text1 = Instance.new("TextLabel",text)
  304. text1.BackgroundTransparency = 1
  305. text1.TextStrokeTransparency = 1
  306. text1.TextTransparency = 1
  307. text1.BorderSizePixel = 0
  308. text1.Text = chatt
  309. text1.Font = "Fantasy"
  310. text1.FontSize = "Size36"
  311. text1.TextStrokeTransparency = 0
  312. text1.TextColor3 = Color3.new(1,1,1)
  313. text1.TextStrokeColor3 = Color3.new(0,0,0)
  314. text1.Size = UDim2.new(1,0,0.5,0)
  315. for i=1,15 do
  316. wait()
  317. text1.TextStrokeTransparency = text1.TextStrokeTransparency - 0.1
  318. text1.TextTransparency = text1.TextTransparency - 0.1
  319. end
  320. wait(1)
  321. for i=1,25 do
  322. wait()
  323. text1.TextStrokeTransparency = text1.TextStrokeTransparency + 0.1
  324. text1.TextTransparency = text1.TextTransparency + 0.1
  325. end
  326. end
  327.  
  328. function explo()
  329. sph = Instance.new('Part', char)
  330. sph.Touched:connect(function(hit)
  331. if hit.Parent:FindFirstChild('Humanoid') then
  332. if hit.Parent.Name ~= plr.Name then
  333. hit.Parent:Destroy()
  334. else
  335. end
  336. end
  337. end)
  338. sph.Anchored = true
  339. sph.CFrame = char.Torso.CFrame
  340. sph.CanCollide = false
  341. sph.Anchored = true
  342. sph.Transparency = 0
  343. sph.Material = "Neon"
  344. sph.Shape = "Ball"
  345. sph.Size = Vector3.new(0.2,0.2,0.2)
  346. for i = 1,50 do
  347. wait()
  348. sph.Size = sph.Size + Vector3.new(4,4,4)
  349. sph.Transparency = sph.Transparency + 0.03
  350. sph.CFrame = char.Torso.CFrame
  351. end
  352. sph:Destroy()
  353. end
  354.  
  355. --// Main script, don't touch if you don't know how to script or you might ruin the script.
  356.  
  357. entrance()
  358.  
  359. mouse.Button1Down:connect(function()
  360. if cd1 then
  361. if mouse.Target.Parent:FindFirstChild('Humanoid') then
  362. cd1 = false
  363. local target = mouse.Target.Parent
  364. target:FindFirstChild('Torso').Anchored = true
  365. for i=0,1,0.1 do
  366. rshold.C0 = rshold.C0:lerp(CFrame.new(0.9,0.5,-0.1)*CFrame.Angles(rad(-90),rad(90),rad(-180)),i)
  367. wait()
  368. end
  369. chat("Destroy!")
  370. wait(.5)
  371. particle = Instance.new('Part', workspace)
  372. particle.Anchored = true
  373. particle.CFrame = target:FindFirstChild('Torso').CFrame
  374. particle.CanCollide = false
  375. particle.Anchored = true
  376. particle.Transparency = 1
  377. particle.Size = Vector3.new(6.52, 10.36, 6.34)
  378. local pe = Instance.new("ParticleEmitter")
  379. pe.Acceleration = Vector3.new(7, 7, 7)
  380. pe.Lifetime = NumberRange.new(1, 4)
  381. pe.Rate = 500
  382. pe.RotSpeed = NumberRange.new(7, 7)
  383. pe.LightEmission = 0.700
  384. pe.Rotation = NumberRange.new(0, 0)
  385. pe.Size = NumberSequence.new({
  386. NumberSequenceKeypoint.new(0, 1, 0),
  387. NumberSequenceKeypoint.new(1, 10, 0),
  388. NumberSequenceKeypoint.new(1, 10, 0)
  389. })
  390. pe.Texture = "http://www.roblox.com/asset/?id=242996110"
  391. pe.Transparency = NumberSequence.new({
  392. NumberSequenceKeypoint.new(0, 0, 0),
  393. NumberSequenceKeypoint.new(0.4, 0.3, 0),
  394. NumberSequenceKeypoint.new(1, 1, 1)
  395. })
  396. pe.ZOffset = 5
  397. pe.VelocitySpread = 360
  398. pe.Parent = particle
  399. pe.Enabled = true
  400. wait(1)
  401. pe.Enabled = false
  402. target:Destroy()
  403. for i=0,1,0.1 do
  404. rshold.C0 = rshold.C0:lerp(rsho,i)
  405. wait()
  406. end
  407. wait(1)
  408. cd1 = true
  409. end
  410. end
  411. end)
  412.  
  413. mouse.KeyDown:connect(function(key)
  414. if key == "t" then
  415. if cd1 then
  416. cd1 = false
  417. particle = Instance.new('Part', workspace)
  418. particle.Anchored = true
  419. particle.CFrame = char:FindFirstChild('Torso').CFrame
  420. particle.CanCollide = false
  421. particle.Anchored = true
  422. particle.Transparency = 1
  423. particle.Size = Vector3.new(6.52, 10.36, 6.34)
  424. local pe = Instance.new("ParticleEmitter")
  425. pe.Acceleration = Vector3.new(7, 7, 7)
  426. pe.Lifetime = NumberRange.new(1, 4)
  427. pe.Rate = 500
  428. pe.RotSpeed = NumberRange.new(7, 7)
  429. pe.LightEmission = 0.700
  430. pe.Rotation = NumberRange.new(0, 0)
  431. pe.Size = NumberSequence.new({
  432. NumberSequenceKeypoint.new(0, 1, 0),
  433. NumberSequenceKeypoint.new(1, 10, 0),
  434. NumberSequenceKeypoint.new(1, 10, 0)
  435. })
  436. pe.Texture = "http://www.roblox.com/asset/?id=242996110"
  437. pe.Transparency = NumberSequence.new({
  438. NumberSequenceKeypoint.new(0, 0, 0),
  439. NumberSequenceKeypoint.new(0.4, 0.3, 0),
  440. NumberSequenceKeypoint.new(1, 1, 1)
  441. })
  442. pe.ZOffset = 5
  443. pe.VelocitySpread = 360
  444. pe.Parent = particle
  445. pe.Enabled = true
  446. wait(.3)
  447. char.Torso.CFrame = mouse.Hit
  448. pe.Enabled = false
  449. harmlessexplo()
  450. wait(3)
  451. cd1 = true
  452. end
  453. end
  454.  
  455. if key == "q" then
  456. if cd2 then
  457. cd2 = false
  458. for i=0,1,0.1 do
  459. lshold.C0 = lshold.C0:lerp(CFrame.new(-1.3,0.7,-0.1)*CFrame.Angles(rad(25),-rad(20),-rad(90)),i)
  460. rshold.C0 = rshold.C0:lerp(CFrame.new(1.3,0.7,-0.1)*CFrame.Angles(rad(25),rad(20),rad(90)),i)
  461. wait()
  462. end
  463.  
  464. local pe = Instance.new("ParticleEmitter")
  465. pe.Acceleration = Vector3.new(3, 3, 3)
  466. pe.Lifetime = NumberRange.new(0.1, 0.5)
  467. pe.Rate = 4000
  468. pe.RotSpeed = NumberRange.new(0, 0)
  469. pe.LightEmission = 0.700
  470. pe.Rotation = NumberRange.new(0, 0)
  471. pe.Size = NumberSequence.new({
  472. NumberSequenceKeypoint.new(0, 1, 0),
  473. NumberSequenceKeypoint.new(0.1, 1, 0),
  474. NumberSequenceKeypoint.new(1, 1, 0)
  475. })
  476. pe.Texture = "http://www.roblox.com/asset/?id=242996110"
  477. pe.Transparency = NumberSequence.new({
  478. NumberSequenceKeypoint.new(0, 0, 0),
  479. NumberSequenceKeypoint.new(0.4, 0.3, 0),
  480. NumberSequenceKeypoint.new(1, 1, 1)
  481. })
  482. pe.ZOffset = 5
  483. pe.VelocitySpread = 360
  484. pe.Parent = char["Right Arm"]
  485. pe1 = pe:Clone()
  486. pe1.Parent = char["Left Arm"]
  487. wait(.05)
  488. pe.Enabled = true
  489.  
  490. wait(.05)
  491.  
  492. for i= 1, 100 do
  493. char.Humanoid.HipHeight = char.Humanoid.HipHeight + 0.5
  494. wait()
  495. end
  496.  
  497. wait(.03)
  498.  
  499. chat("A world like this must disappear!")
  500. wait(.07)
  501. explo()
  502. wait(.04)
  503. for i=0,1,0.1 do
  504. lshold.C0 = lshold.C0:lerp(lsho,i)
  505. rshold.C0 = rshold.C0:lerp(rsho,i)
  506. wait()
  507. end
  508. pe.Enabled = false
  509. pe1.Enabled = fasle
  510. char.Humanoid.HipHeight = 0
  511. wait(5)
  512. cd2 = true
  513. end
  514. end
  515. end)
  516.  
  517. while wait() do
  518. char.Humanoid.MaxHealth = 99999
  519. char.Humanoid.Health = char.Humanoid.MaxHealth
  520. end
Advertisement
Add Comment
Please, Sign In to add comment