Advertisement
Josemmoya

LEMME SMASH.

Mar 26th, 2019
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.59 KB | None | 0 0
  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. oblivion = 'see u on a dark night friend'
  87. oblivions = 'script by josemmoya. change josemmoya to ur name'
  88. print(oblivion)
  89. print(oblivions)
  90. attack = false
  91. Rad = math.rad
  92. RootPart = workspace.Josemmoya["HumanoidRootPart"]
  93. RootJoint = RootPart["RootJoint"]
  94. local root = workspace.Josemmoya.HumanoidRootPart
  95. local rootj = root.RootJoint
  96. local Blobby = Instance.new("Part", workspace.Josemmoya)
  97. Blobby.Name = "Blob"
  98. Blobby.CanCollide = false
  99. Blobby.BrickColor = BrickColor.new("Really black")
  100. Blobby.Transparency = 0
  101. Blobby.Material = "Plastic"
  102. Blobby.Size = Vector3.new(1, 1, 2)
  103. Blobby.TopSurface = Enum.SurfaceType.Smooth
  104. Blobby.BottomSurface = Enum.SurfaceType.Smooth
  105.  
  106. local Weld = Instance.new("Weld", Blobby)
  107. Weld.Part0 = ra
  108. Weld.Part1 = Blobby
  109. Weld.C1 = CFrame.new(0, 0.8, 0)
  110. Weld.C0 = CFrame.Angles(Rad(-180),0,135)
  111.  
  112. local M2 = Instance.new("SpecialMesh")
  113. M2.Parent = Blobby
  114. M2.MeshId = "rbxassetid://0"
  115. M2.TextureId = "rbxassetid://0"
  116. M2.Scale = Vector3.new(1, 0.8, 1)
  117. local Player_Size = 1
  118. local sine = 0
  119. Cos = math.cos
  120. CF = CFrame.new
  121. angles = CFrame.Angles
  122. attack = false
  123. Euler = CFrame.fromEulerAnglesXYZ
  124. local killsky = Instance.new('Sky', game:GetService'Lighting')
  125. killsky.SkyboxBk = "rbxassetid://231925924"
  126. killsky.SkyboxDn = "rbxassetid://231925924"
  127. killsky.SkyboxFt = "rbxassetid://231925924"
  128. killsky.SkyboxLf = "rbxassetid://231925924"
  129. killsky.SkyboxRt = "rbxassetid://231925924"
  130. killsky.SkyboxUp = "rbxassetid://231925924"
  131. ---
  132. killsky.StarCount = 0
  133. killsky.SunAngularSize = 0
  134. killsky.MoonAngularSize = 0
  135. killsky.MoonTextureId = ""
  136. killsky.CelestialBodiesShown = false
  137. function clerp(a, b, t)
  138. local qa = {
  139. QuaternionFromCFrame(a)
  140. }
  141. local qb = {
  142. QuaternionFromCFrame(b)
  143. }
  144. local ax, ay, az = a.x, a.y, a.z
  145. local bx, by, bz = b.x, b.y, b.z
  146. local _t = 1 - t
  147. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  148. end
  149. function QuaternionFromCFrame(cf)
  150. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  151. local trace = m00 + m11 + m22
  152. if trace > 0 then
  153. local s = math.sqrt(1 + trace)
  154. local recip = 0.5 / s
  155. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  156. else
  157. local i = 0
  158. if m00 < m11 then
  159. i = 1
  160. end
  161. if m22 > (i == 0 and m00 or m11) then
  162. i = 2
  163. end
  164. if i == 0 then
  165. local s = math.sqrt(m00 - m11 - m22 + 1)
  166. local recip = 0.5 / s
  167. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  168. elseif i == 1 then
  169. local s = math.sqrt(m11 - m22 - m00 + 1)
  170. local recip = 0.5 / s
  171. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  172. elseif i == 2 then
  173. local s = math.sqrt(m22 - m00 - m11 + 1)
  174. local recip = 0.5 / s
  175. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  176. end
  177. end
  178. end
  179. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  180. local xs, ys, zs = x + x, y + y, z + z
  181. local wx, wy, wz = w * xs, w * ys, w * zs
  182. local xx = x * xs
  183. local xy = x * ys
  184. local xz = x * zs
  185. local yy = y * ys
  186. local yz = y * zs
  187. local zz = z * zs
  188. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  189. end
  190. function QuaternionSlerp(a, b, t)
  191. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  192. local startInterp, finishInterp
  193. if cosTheta >= 1.0E-4 then
  194. if 1 - cosTheta > 1.0E-4 then
  195. local theta = math.acos(cosTheta)
  196. local invSinTheta = 1 / Sin(theta)
  197. startInterp = Sin((1 - t) * theta) * invSinTheta
  198. finishInterp = Sin(t * theta) * invSinTheta
  199. else
  200. startInterp = 1 - t
  201. finishInterp = t
  202. end
  203. elseif 1 + cosTheta > 1.0E-4 then
  204. local theta = math.acos(-cosTheta)
  205. local invSinTheta = 1 / Sin(theta)
  206. startInterp = Sin((t - 1) * theta) * invSinTheta
  207. finishInterp = Sin(t * theta) * invSinTheta
  208. else
  209. startInterp = t - 1
  210. finishInterp = t
  211. end
  212. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  213. end
  214. function Cso(ID, PARENT, VOLUME, PITCH)
  215. local NSound = nil
  216. coroutine.resume(coroutine.create(function()
  217. NSound = IT("Sound", PARENT)
  218. NSound.Volume = VOLUME
  219. NSound.Pitch = PITCH
  220. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  221. swait()
  222. NSound:play()
  223. game:GetService("Debris"):AddItem(NSound, 50)
  224. end))
  225. return NSound
  226. end
  227. function swait(num)
  228. if num == 0 or num == nil then
  229. game:service("RunService").Stepped:wait(0)
  230. else
  231. for i = 0, num do
  232. game:service("RunService").Stepped:wait(0)
  233. end
  234. end
  235. end
  236. function die()
  237. attack = true
  238. M2.MeshId = "http://www.roblox.com/asset/?id=28140935"
  239. M2.TextureId = "http://www.roblox.com/asset/?id=50252366"
  240. for i = 0, 2.6, 0.1 do
  241. swait()
  242. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17)
  243. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 6.5 * Cos(sine / 12)), Rad(0), Rad(20 * Cos(sine / 12))), 0.3)
  244. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size + 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(84), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  245. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-84), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  246. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(160), Rad(-.6), Rad(13)), 0.2)
  247. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(7 + 4.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-13 - 4.5 * Sin(sine / 12))), 0.1)
  248. end
  249. Cso("357417055", tors, 10, 1)
  250. CameraEnshaking(2, 15)
  251. Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
  252. Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
  253. Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
  254. for i, v in pairs(FindNearestHead(Blobby.CFrame.p, 9.5)) do
  255. if v:FindFirstChild("Head") then
  256. Eviscerate(v)
  257. end
  258. end
  259. for i = 0, 3, 0.1 do
  260. swait()
  261. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17)
  262. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 6.5 * Cos(sine / 12)), Rad(0), Rad(20 * Cos(sine / 12))), 0.3)
  263. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size + 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(84), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  264. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-84), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  265. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(5), Rad(-.6), Rad(-25)), 0.3)
  266. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(7 + 4.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-13 - 4.5 * Sin(sine / 12))), 0.1)
  267. end
  268. M2.MeshId = "http://www.roblox.com/asset/?id=0"
  269. M2.TextureId = "http://www.roblox.com/asset/?id=0"
  270. attack = false
  271. end
  272. workspace.Josemmoya:WaitForChild('Animate').walk.WalkAnim.AnimationId = 'http://www.roblox.com/asset/?id=2916628443'
  273. workspace.Josemmoya:WaitForChild('Animate').idle["Animation1"].AnimationId = 'http://www.roblox.com/asset/?id=2916628443'
  274. workspace.Josemmoya:WaitForChild('Animate').idle["Animation2"].AnimationId = 'http://www.roblox.com/asset/?id=2916628443'
  275. local idek = Instance.new("Animation",workspace.Josemmoya.Head)
  276. idek.AnimationId = 'rbxassetid://2916628443'
  277. local char = workspace.Josemmoya
  278. local humanoid = char.Humanoid
  279. local head = char.Head
  280.  
  281. local w = humanoid:LoadAnimation(head.Animation)
  282. w:Play()
  283. mouse.Button1Down:connect(function(key)
  284. if attack == false then
  285. die()
  286. end
  287. end)
  288. local sound = Instance.new("Sound")
  289. local soundID = 725003252 --Sound ID
  290. local volume = 10 --Volume
  291. local pitch = 1 --Pitch
  292. local looped = true --Set to false if you dont want it looped
  293. local name = "despacito"--Doesnt matter
  294. local parent = workspace.Josemmoya.Torso
  295. --Main script, don't touch unless you know what your doing
  296. sound.Parent = (parent)
  297. sound.SoundId = "http://www.roblox.com/asset/?id="..soundID..""
  298. sound.Pitch = pitch
  299. sound.Volume = volume
  300. sound.Name = name
  301. sound.Looped = looped
  302. sound:play()
  303. workspace.Josemmoya.Head.face.Texture = "rbxassetid://231925924"
  304. local txt = Instance.new("BillboardGui", workspace.Josemmoya)
  305. txt.Adornee = workspace.Josemmoya.Head
  306. txt.Name = "_status"
  307. txt.Size = UDim2.new(2, 0, 1.2, 0)
  308. txt.StudsOffset = Vector3.new(-9, 8, 0)
  309. local text = Instance.new("TextLabel", txt)
  310. text.Size = UDim2.new(10, 0, 7, 0)
  311. text.FontSize = "Size24"
  312. text.TextScaled = true
  313. text.TextTransparency = 0
  314. text.BackgroundTransparency = 1
  315. text.TextTransparency = 0
  316. text.TextStrokeTransparency = 1
  317. text.Font = "Cartoon"
  318. text.text = "ron x becky best ship"
  319. text.TextStrokeColor3 = Color3.new(0, 0, 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement