Pancakess

despacito

Jan 26th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has been converted to FE by iPxter
  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,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  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 UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  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. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. --[[ by iliketrainsornot ]]--
  88.  
  89. warn("w h y")
  90. print("this cancer is made by iliketrainsornot")
  91. plr = owner
  92. char = plr.Character
  93. Instance.new("ForceField",char).Visible = false
  94. hed = char.Head
  95. torso = char.Torso
  96. rarm = char["Right Arm"]
  97. larm = char["Left Arm"]
  98. rleg = char["Right Leg"]
  99. lleg = char["Left Leg"]
  100. rarm.Transparency = 1
  101. larm.Transparency = 1
  102. lleg.Transparency = 1
  103. rleg.Transparency = 1
  104. torso.Transparency = 1
  105. activ = false
  106. sound = false
  107. Create = LoadLibrary("RbxUtility").Create
  108. char.Animate:Destroy()
  109. hum = char:FindFirstChildOfClass("Humanoid")
  110. hum.Animator:Destroy()
  111. hum.MaxHealth = math.huge
  112. hum.Health = math.huge
  113. hum.Name = "despacito"
  114. hum.JumpPower = 125
  115. hum.WalkSpeed = 65
  116. for _,c in pairs(char:GetChildren()) do
  117. if (c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "ShirtGraphic") and c.Name ~= "Cloth" then
  118. c:Remove()
  119. end
  120. end
  121. hed:FindFirstChildOfClass("SpecialMesh").MeshId = "http://www.roblox.com/asset/?id=1047997"
  122. hed:FindFirstChildOfClass("SpecialMesh").TextureId = "http://www.roblox.com/asset/?id=1047998"
  123. hed.face:Destroy()
  124. hed:FindFirstChildOfClass("SpecialMesh").Scale = Vector3.new(2.5, 2.5, 2.5)
  125. hed:FindFirstChildOfClass("SpecialMesh").Offset = Vector3.new(0,1.8,0)
  126. redhead = Instance.new("Part",torso)
  127. redhead.Size = torso.Size
  128. redhead.Transparency = 0
  129. weld = Instance.new("Weld",redhead)
  130. weld.Part0 = redhead
  131. weld.Part1 = torso
  132. weld.C0 = CFrame.Angles(math.rad(-180), math.rad(-90), math.rad(0))
  133. redhead1 = Instance.new("SpecialMesh",redhead)
  134. redhead1.MeshId = hed:FindFirstChildOfClass("SpecialMesh").MeshId
  135. redhead1.Scale = Vector3.new(2.85,2.85,2.85)
  136. redhead1.TextureId = "http://www.roblox.com/asset/?id=1047998"
  137. redhead.CanCollide = false
  138. redhead1.Offset = Vector3.new(0,0.3,0)
  139. redhead1.VertexColor = Vector3.new(255,0,0)
  140. redhead = Instance.new("Part",rleg)
  141. redhead.Size = rleg.Size
  142. weld = Instance.new("Weld",redhead)
  143. weld.Part0 = redhead
  144. weld.Part1 = torso
  145. weld.C0 = CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  146. redhead1 = Instance.new("SpecialMesh",redhead)
  147. redhead1.MeshId = "rbxassetid://696339842"
  148. redhead1.Scale = Vector3.new(1.3, 1.6, 0.8)
  149. redhead.CanCollide = false
  150. redhead1.Offset = Vector3.new(0, 0, -2.1)
  151. redhead1.VertexColor = Vector3.new(0,0,0)
  152. redhead2 = Instance.new("Decal", redhead)
  153. redhead2.Color3 = Color3.fromRGB(0,0,0)
  154. redhead2.Texture = "rbxassetid://696339520"
  155. despacitotext = Instance.new("Part",hed)
  156. despacitotext.Name = "despacito"
  157. despacitotext.Size = Vector3.new(6.5,3,5.5)
  158. despacitotext.Transparency = 1
  159. despacitotext.CanCollide = false
  160. weld = Instance.new("Weld",redhead)
  161. weld.Part0 = despacitotext
  162. weld.Part1 = hed
  163. surfacegui = Instance.new("SurfaceGui",despacitotext)
  164. text = Instance.new("TextLabel",surfacegui)
  165. text.Size = UDim2.new(1,0,1,0)
  166. text.TextSize = 150
  167. text.Font = Enum.Font.Legacy
  168. text.BackgroundTransparency = 1
  169. surfacegui.AlwaysOnTop = true
  170. text.TextStrokeColor3 = Color3.fromRGB(255,0,0)
  171. text.TextStrokeTransparency = 0
  172. text.TextColor3 = Color3.fromRGB(0,0,0)
  173. text.Text = "despacito"
  174. despacito = Instance.new("Sound",char)
  175. despacito.SoundId = "rbxassetid://1345639272"
  176. despacito.Volume = 10
  177. despacito.EmitterSize = 100
  178. despacito:Play()
  179. despacito.Name = "despacito"
  180. local seffect = Instance.new("ReverbSoundEffect",despacito)
  181. char.ChildRemoved:connect(function(h)
  182. if h == despacito then
  183. despacito = Instance.new("Sound",char)
  184. despacito.SoundId = "rbxassetid://1345639272"
  185. despacito.Volume = 10
  186. despacito.EmitterSize = 100
  187. despacito:Play()
  188. despacito.Name = "despacito"
  189. despacito.TimePosition = despacito.TimePosition
  190. local seffect = Instance.new("ReverbSoundEffect",despacito)
  191. end
  192. end)
  193. function RemoveOutlines(part)
  194. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  195. end
  196. CFuncs = {
  197. Part = {
  198. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  199. local Part = Create("Part")({
  200. Parent = Parent,
  201. Reflectance = Reflectance,
  202. Transparency = Transparency,
  203. CanCollide = false,
  204. Locked = true,
  205. BrickColor = BrickColor.new(tostring(BColor)),
  206. Name = Name,
  207. Size = Size,
  208. Material = Material
  209. })
  210. RemoveOutlines(Part)
  211. if Size == Vector3.new() then
  212. Part.Size = Vector3.new(0.2, 0.2, 0.2)
  213. else
  214. Part.Size = Size
  215. end
  216. return Part
  217. end
  218. },
  219. Mesh = {
  220. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  221. local Msh = Create(Mesh)({
  222. Parent = Part,
  223. Offset = OffSet,
  224. Scale = Scale
  225. })
  226. if Mesh == "SpecialMesh" then
  227. Msh.MeshType = MeshType
  228. Msh.MeshId = MeshId
  229. end
  230. return Msh
  231. end
  232. },
  233. Weld = {
  234. Create = function(Parent, Part0, Part1, C0, C1)
  235. local Weld = Create("Weld")({
  236. Parent = Parent,
  237. Part0 = Part0,
  238. Part1 = Part1,
  239. C0 = C0,
  240. C1 = C1
  241. })
  242. return Weld
  243. end
  244. },
  245. Sound = {
  246. Create = function(id, par, vol, pit)
  247. local Sound = Create("Sound")({
  248. Volume = vol,
  249. Pitch = pit or 1,
  250. SoundId = "rbxassetid://" .. id,
  251. Parent = par or workspace
  252. })
  253. Sound:play()
  254. return Sound
  255. end
  256. },
  257. Decal = {
  258. Create = function(Color, Texture, Transparency, Name, Parent)
  259. local Decal = Create("Decal")({
  260. Color3 = Color,
  261. Texture = "rbxassetid://" .. Texture,
  262. Transparency = Transparency,
  263. Name = Name,
  264. Parent = Parent
  265. })
  266. return Decal
  267. end
  268. },
  269. BillboardGui = {
  270. Create = function(Parent, Image, Position, Size)
  271. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  272. BillPar.CFrame = CFrame.new(Position)
  273. local Bill = Create("BillboardGui")({
  274. Parent = BillPar,
  275. Adornee = BillPar,
  276. Size = UDim2.new(1, 0, 1, 0),
  277. SizeOffset = Vector2.new(Size, Size)
  278. })
  279. local d = Create("ImageLabel", Bill)({
  280. Parent = Bill,
  281. BackgroundTransparency = 1,
  282. Size = UDim2.new(1, 0, 1, 0),
  283. Image = "rbxassetid://" .. Image
  284. })
  285. return BillPar
  286. end
  287. },
  288. ParticleEmitter = {
  289. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  290. local Particle = Create("ParticleEmitter")({
  291. Parent = Parent,
  292. Color = ColorSequence.new(Color1, Color2),
  293. LightEmission = LightEmission,
  294. Size = Size,
  295. Texture = Texture,
  296. Transparency = Transparency,
  297. ZOffset = ZOffset,
  298. Acceleration = Accel,
  299. Drag = Drag,
  300. LockedToPart = LockedToPart,
  301. VelocityInheritance = VelocityInheritance,
  302. EmissionDirection = EmissionDirection,
  303. Enabled = Enabled,
  304. Lifetime = LifeTime,
  305. Rate = Rate,
  306. Rotation = Rotation,
  307. RotSpeed = RotSpeed,
  308. Speed = Speed,
  309. VelocitySpread = VelocitySpread
  310. })
  311. return Particle
  312. end
  313. },
  314. CreateTemplate = {}
  315. }
  316. function text(Pos, Text, Time, Color)
  317. local Rate = 0.03333333333333333
  318. local Pos = Pos or Vector3.new(0, 0, 0)
  319. local Text = Text or ""
  320. local Time = Time or 2
  321. local Color = Color or Color3.new(1, 0, 1)
  322. local EffectPart = CFuncs.Part.Create(hed, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  323. EffectPart.Anchored = true
  324. local BillboardGui = Create("BillboardGui")({
  325. Size = UDim2.new(3, 0, 3, 0),
  326. Adornee = EffectPart,
  327. Parent = EffectPart
  328. })
  329. local TextLabel = Create("TextLabel")({
  330. BackgroundTransparency = 1,
  331. Size = UDim2.new(1, 0, 1, 0),
  332. TextSize = 55,
  333. Text = Text,
  334. Font = Enum.Font.Cartoon,
  335. TextColor3 = Color3.fromRGB(255,255,255),
  336. TextScaled = false,
  337. Parent = BillboardGui
  338. })
  339. game.Debris:AddItem(EffectPart, Time)
  340. EffectPart.Parent = game:GetService("Workspace")
  341. delay(0, function()
  342. local Frames = Time / Rate
  343. for Frame = 1, Frames do
  344. wait(Rate)
  345. local Percent = Frame / Frames
  346. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  347. TextLabel.TextTransparency = Percent
  348. end
  349. if EffectPart and EffectPart.Parent then
  350. EffectPart:Destroy()
  351. end
  352. end)
  353. end
  354. ArtificialHB = Instance.new("BindableEvent", script)
  355. ArtificialHB.Name = "ArtificialHB"
  356.  
  357. script:WaitForChild("ArtificialHB")
  358. Frame_Speed = 1 / 60
  359. frame = Frame_Speed
  360. tf = 0
  361. allowframeloss = false
  362. tossremainder = false
  363. lastframe = tick()
  364. script.ArtificialHB:Fire()
  365.  
  366. game:GetService("RunService").Heartbeat:connect(function(s, p)
  367. tf = tf + s
  368. if tf >= frame then
  369. if allowframeloss then
  370. script.ArtificialHB:Fire()
  371. lastframe = tick()
  372. else
  373. for i = 1, math.floor(tf / frame) do
  374. script.ArtificialHB:Fire()
  375. end
  376. lastframe = tick()
  377. end
  378. if tossremainder then
  379. tf = 0
  380. else
  381. tf = tf - frame * math.floor(tf / frame)
  382. end
  383. end
  384. end)
  385.  
  386. function CreateSound(ID, PARENT, VOLUME, PITCH)
  387. --coroutine.resume(coroutine.create(function()
  388. local NEWSOUND = Instance.new("Sound", PARENT)
  389. NEWSOUND.Volume = VOLUME
  390. NEWSOUND.Pitch = PITCH
  391. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  392. NEWSOUND:play()
  393. game:GetService("Debris"):AddItem(NEWSOUND, 100)
  394. return NEWSOUND
  395. --end))
  396. end
  397. function Swait(NUMBER)
  398. if NUMBER == 0 or NUMBER == nil then
  399. ArtificialHB.Event:wait()
  400. else
  401. for i = 1, NUMBER do
  402. ArtificialHB.Event:wait()
  403. end
  404. end
  405. end
  406. function itstimetostop()
  407. sound = true
  408. local snd = Instance.new("Sound",char)
  409. snd.SoundId = "rbxassetid://358468903"
  410. snd.Volume = 10
  411. snd.TimePosition = 0.25
  412. snd.EmitterSize = 350
  413. snd:Play()
  414. text(hed.CFrame * CFrame.new(0, 0, hed.Size.Y / 2).p + Vector3.new(0, 6, 0), "ITS TIME TO STOP", 2, Color3.fromRGB(255,255,255))
  415. wait(2)
  416. text(hed.CFrame * CFrame.new(0, 0, hed.Size.Y / 2).p + Vector3.new(0, 6, 0), "ITS TIME TO STOP OKAY", 2, Color3.fromRGB(255,255,255))
  417. wait(2.6)
  418. text(hed.CFrame * CFrame.new(0, 0, hed.Size.Y / 2).p + Vector3.new(0, 6, 0), "NO MORE", 2, Color3.fromRGB(255,255,255))
  419. sound = false
  420. end
  421. function youbetterstop()
  422. sound = true
  423. local snd = Instance.new("Sound",char)
  424. snd.SoundId = "rbxassetid://1246891273"
  425. snd.Volume = 10
  426. snd.TimePosition = 1.2
  427. snd:Play()
  428. snd.EmitterSize = 100
  429. text(hed.CFrame * CFrame.new(0, 0, hed.Size.Y / 2).p + Vector3.new(0, 6, 0), "youbetterstop.mp3", 5.2, Color3.fromRGB(255,255,255))
  430. wait(5.2)
  431. sound = false
  432. end
  433. function ecksdee()
  434. sound = true
  435. local snd = Instance.new("Sound",char)
  436. snd.SoundId = "rbxassetid://1486343908"
  437. snd.Volume = 10
  438. snd:Play()
  439. snd.EmitterSize = 150
  440. text(hed.CFrame * CFrame.new(0, 0, hed.Size.Y / 2).p + Vector3.new(0, 6, 0), "ecks", 1, Color3.fromRGB(255,255,255))
  441. wait(0.95)
  442. text(hed.CFrame * CFrame.new(0, 0, hed.Size.Y / 2).p + Vector3.new(0, 6, 0), "dee", 1, Color3.fromRGB(255,255,255))
  443. sound = false
  444. end
  445. function lukatthisdude()
  446. sound = true
  447. local snd = Instance.new("Sound",char)
  448. snd.SoundId = "rbxassetid://525498255"
  449. snd.Volume = 10
  450. snd:Play()
  451. snd.EmitterSize = 300
  452. text(hed.CFrame * CFrame.new(0, 0, hed.Size.Y / 2).p + Vector3.new(0, 6, 0), "lookatthisdude.mp3", 27, Color3.fromRGB(255,255,255))
  453. wait(27)
  454. sound = false
  455. end
  456. function stopdespacito()
  457. if despacito.Playing == true then
  458. despacito:Pause()
  459. elseif despacito.Playing == false then
  460. despacito:Play()
  461. end
  462. end
  463. function bruh()
  464. sound = true
  465. local snd = Instance.new("Sound",char)
  466. snd.SoundId = "rbxassetid://170040190"
  467. snd.Volume = 10
  468. snd:Play()
  469. snd.EmitterSize = 150
  470. text(hed.CFrame * CFrame.new(0, 0, hed.Size.Y / 2).p + Vector3.new(0, 6, 0), "bRUH", 1.7, Color3.fromRGB(255,255,255))
  471. wait(1.7)
  472. sound = false
  473. end
  474. SHIELD = false
  475. function shield()
  476. IT = Instance.new
  477. VT = Vector3.new
  478. RootPart = char.HumanoidRootPart
  479. CF = CFrame.new
  480. if SHIELD == false then
  481. SHIELD = true
  482. warn("YO TENGO")
  483. coroutine.resume(coroutine.create(function()
  484. local yotengo = IT("Part",char)
  485. yotengo.Size = VT(20,30,0)
  486. yotengo.CFrame = RootPart.CFrame * CF(0,3,-7)
  487. yotengo.Anchored = true
  488. local mesh = IT("SpecialMesh",yotengo)
  489. mesh.MeshType = "FileMesh"
  490. mesh.MeshId = "http://www.roblox.com/asset/?id=15158180"
  491. mesh.TextureId = "http://www.roblox.com/asset/?id=15158167"
  492. mesh.Scale = VT(3,3,3)
  493. CreateSound("1236609502", yotengo, 50, 1)
  494. local woosh = yotengo.Touched:Connect(function(hit)
  495. if hit.Parent.ClassName == "Model" then
  496. hit.Parent:BreakJoints()
  497. CreateSound("978878312", hit, 2, 1)
  498. elseif hit.ClassName == "Part" and hit.Anchored == false then
  499. hit:remove()
  500. end
  501. end)
  502. woosh:disconnect()
  503. CreateSound("1236609502", yotengo, 50, 1)
  504. yotengo.Anchored = false
  505. local bv = Instance.new("BodyVelocity")
  506. bv.maxForce = Vector3.new(4e9, 4e9, 4e9)
  507. bv.velocity = RootPart.CFrame.lookVector*300
  508. bv.Parent = yotengo
  509. bv.Name = "speedy"
  510. local paw = yotengo.Touched:Connect(function(hit)
  511. if hit.Parent.ClassName == "Model" then
  512. yotengo:remove()
  513. hit.Parent:BreakJoints()
  514. wait(0.1)
  515. hit.Parent:ClearAllChildren()
  516. end
  517. end)
  518. end))
  519. elseif SHIELD == true then
  520. SHIELD = false
  521. end
  522. end
  523. mouse.KeyDown:connect(function(k)
  524. if k == "z" and sound == false then
  525. itstimetostop()
  526. elseif k == "x" and sound == false then
  527. youbetterstop()
  528. elseif k == "c" and sound == false then
  529. ecksdee()
  530. elseif k == "v" and sound == false then
  531. lukatthisdude()
  532. elseif k == "b" then
  533. stopdespacito()
  534. elseif k == "n" and sound == false then
  535. bruh()
  536. elseif k == "q" and sound == true then
  537. print("sounds delay resetted!")
  538. sound = false
  539. elseif k == "f" then
  540. shield()
  541. end
  542. end)
Add Comment
Please, Sign In to add comment