carlosname

Untitled

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