EmeraldIT

Untitled

Jul 4th, 2020
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.50 KB | None | 0 0
  1. --utlib
  2. it,v3,u2,cf,rn,c3,bc,rd,pi,rn,ra,fl,ce,ts,ms,ca,create,swait = Instance.new,Vector3.new,UDim2.new,CFrame.new,Ray.new,Color3.new,BrickColor.new,math.rad,math.pi,Ray.new,math.random,math.floor,math.ceil,game:GetService("TweenService"),math.sqrt,CFrame.Angles,function(Object, ...) local Obj = Instance.new(Object) for i,v in next,(...) do Obj[i] = v end return Obj end,function(a) if a==0 or a==nil then game:GetService("RunService").Stepped:Wait(0)else for b=0,a do game:GetService("RunService").Stepped:Wait(0)end end end;function lerp(c,d,e,f,g)local h=0;for b=1,f*100 do if g==true then d=c.C0 end;c.C0=d:lerp(e,b/(f*100))wait(0.01)h=h+0.01 end end
  3. --utlib
  4. Debris = game:GetService("Debris")
  5.  
  6. char=owner.Character
  7. local anchored = false
  8. force=Instance.new("ForceField", char)
  9. force.Visible = false
  10. ls=char.Torso["Left Shoulder"]
  11. rs=char.Torso["Right Shoulder"]
  12. ll=char.Torso["Left Hip"]
  13. rl=char.Torso["Right Hip"]
  14. ne=char.Torso["Neck"]
  15. lsc0=ls.C0
  16. rsc0=rs.C0
  17. nec0=ne.C0
  18. local invis=false
  19. local hwe
  20. local e=it("RemoteEvent",char)
  21. hugging=false
  22. e.Name="huge"
  23. local i=it("RemoteEvent",char)
  24. i.Name="SpoopyDisappearOwO"
  25. a=[[
  26. uis=game:GetService("UserInputService")
  27. local r=owner.Character.huge
  28. local i=owner.Character.SpoopyDisappearOwO
  29. uis.InputBegan:Connect(function(k,g)
  30. if k.KeyCode==Enum.KeyCode.H and not g then
  31. r:FireServer()
  32. elseif k.KeyCode==Enum.KeyCode.Q and not g then
  33. i:FireServer("yes", nil)
  34. elseif k.KeyCode==Enum.KeyCode.E and not g then
  35. i:FireServer("no", game.Players.LocalPlayer:GetMouse().hit.p)
  36. end
  37. end)
  38. ]]
  39. NLS(a,owner.Character)
  40. game:GetService("RunService").Heartbeat:Connect(function()
  41. pcall(function()
  42. if hugging then
  43. char.Head.CanCollide=false
  44. char.Torso.CanCollide=false
  45. else
  46. char.Head.CanCollide=true
  47. char.Torso.CanCollide=true
  48. end
  49. end)
  50. end)
  51. function CreateTween(part, info, goal, play) --[Info]: length, style, direction, repeatTimes, willRepeat, waitTime
  52. local Goal = goal
  53. local TwInfo = TweenInfo.new(unpack(info))
  54. local Tween = ts:Create(part, TwInfo, Goal)
  55. if play then Tween:Play() end
  56. return Tween
  57. end
  58. function hug(who)
  59. pcall(function()
  60. hugging=true
  61. for _,v in pairs(char:GetChildren()) do if v:IsA("BasePart") then v.Massless = true end end
  62. char.Head.CFrame=who.Head.CFrame
  63. hwe=it("Weld",char.Head)
  64. hwe.Part0=char.Torso
  65. hwe.Part1=who.Head
  66. hwe.C0=hwe.C0*ca(rd(0),rd(180),rd(0))+v3(0,1.5,-1)
  67. local RJTween = CreateTween(ne, {0.25, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0},{
  68. C0=nec0*ca(rd(-5),rd(0),rd(-5))+v3(0,0,.1),
  69. }, true)
  70. local RJTween = CreateTween(ls, {0.25, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0},{
  71. C0=lsc0*ca(rd(0),rd(30),rd(-20))+v3(0,.1,.5),
  72. }, true)
  73. local RJTween = CreateTween(rs, {0.25, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0},{
  74. C0=rsc0*ca(rd(0),rd(-30),rd(20))+v3(0,.1,.5),
  75. }, true)
  76. wait(1)
  77. local RJTween = CreateTween(ne, {0.25, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0},{
  78. C0=nec0*ca(rd(40),rd(0),rd(50))+v3(0.06,0,-.1),
  79. }, true)
  80. local RJTween = CreateTween(ls, {0.25, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0},{
  81. C0=lsc0*ca(rd(0),rd(-30),rd(-115))+v3(0,.2,-.5),
  82. }, true)
  83. local RJTween = CreateTween(rs, {0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0},{
  84. C0=rsc0*ca(rd(0),rd(30),rd(115))+v3(0,.2,-.5),
  85. }, true)
  86. char.Head.Hearts:Emit(math.random(1,3))
  87. end)
  88. end
  89.  
  90. function dehug()
  91. pcall(function()
  92. for _,v in pairs(char:GetChildren()) do if v:IsA("BasePart") then v.Massless = false end end
  93. hwe:Destroy()
  94. local RJTween = CreateTween(ne, {0.25, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0},{
  95. C0=nec0,
  96. }, true)
  97. local RJTween = CreateTween(ls, {0.25, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0},{
  98. C0=lsc0,
  99. }, true)
  100. local RJTween = CreateTween(rs, {0.25, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0},{
  101. C0=rsc0,
  102. }, true)
  103. hugging=false
  104. end)
  105. end
  106. e.OnServerEvent:Connect(function()
  107. if not hugging then
  108. local r=rn(char.Torso.CFrame.p,char.Torso.CFrame.LookVector*5)
  109. local hit,pos,norm=workspace:FindPartOnRay(r,char)
  110. if hit then
  111. if hit.Parent==nil then return end
  112. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("Head") and not hugging then
  113. hug(hit.Parent)
  114. hit.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(hit.Parent:FindFirstChildOfClass("Humanoid").MaxHealth - hit.Parent:FindFirstChildOfClass("Humanoid").Health)
  115. end
  116. end
  117. else
  118. dehug()
  119. end
  120. end)
  121.  
  122. i.OnServerEvent:Connect(function(pla, a, literallydie)
  123. if a == "yes" then
  124. if not invis then
  125. gone()
  126. else
  127. here()
  128. end
  129. elseif a == "no" then
  130. p = Instance.new("FlagStand")
  131. p.Material = "Neon"
  132. p.Shape = "Cylinder"
  133. p.Color = Color3.new(1,0.5,0.4)
  134. p.Anchored = true
  135. p.CanCollide = false
  136. p.Position = char.HumanoidRootPart.Position
  137. p.Size = Vector3.new(2048,3,3)
  138. p.CFrame = p.CFrame * CFrame.Angles(math.rad(math.random(-10,10)),0,math.rad(90+math.random(-10,10)))
  139. p.Parent = workspace
  140. local yessirr = CreateTween(p, {1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0},{
  141. Transparency = 1,
  142. Size = Vector3.new(2048,0,0)
  143. }, true)
  144. game.Debris:AddItem(p, 2)
  145. wait(1)
  146. smite(literallydie)
  147. end
  148. end)
  149.  
  150. ParticleEmitter15 = Instance.new("ParticleEmitter")
  151. ParticleEmitter15.Name = "Hearts"
  152. ParticleEmitter15.Parent = char.Head
  153. ParticleEmitter15.Speed = NumberRange.new(10, 10)
  154. ParticleEmitter15.Rotation = NumberRange.new(-20, 20)
  155. ParticleEmitter15.Color = ColorSequence.new(Color3.new(1, 1, 0.498039),Color3.new(1, 0.666667, 1))
  156. ParticleEmitter15.Enabled = false
  157. ParticleEmitter15.LightEmission = 1
  158. ParticleEmitter15.Texture = "rbxassetid://36721240"
  159. ParticleEmitter15.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.29621124267578, 0),NumberSequenceKeypoint.new(0.81974738836288, 0),NumberSequenceKeypoint.new(1, 1)})
  160. ParticleEmitter15.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(0.07822085916996, 1.4375001192093),NumberSequenceKeypoint.new(1, 1.4375001192093)})
  161. ParticleEmitter15.Acceleration = Vector3.new(0, -2, 0)
  162. ParticleEmitter15.Drag = 3
  163. ParticleEmitter15.Lifetime = NumberRange.new(0.80000001192093, 1.2999999523163)
  164. ParticleEmitter15.Rate = 4
  165. ParticleEmitter15.RotSpeed = NumberRange.new(-20, 20)
  166. ParticleEmitter15.SpreadAngle = Vector2.new(-30, 30)
  167. ParticleEmitter15.VelocitySpread = -30
  168.  
  169. for _,v in pairs(char:GetChildren()) do
  170. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  171. local ParticleEmitter0 = Instance.new("ParticleEmitter")
  172. ParticleEmitter0.Name = "Fire"
  173. ParticleEmitter0.Enabled = false
  174. ParticleEmitter0.Parent = v
  175. ParticleEmitter0.Speed = NumberRange.new(1, 3)
  176. ParticleEmitter0.Rotation = NumberRange.new(-180, 180)
  177. --ParticleEmitter0.Color = ColorSequence.new(Color3.new(1, 0.333333, 0),Color3.new(1, 0.333333, 0))
  178. ParticleEmitter0.LightEmission = 1
  179. ParticleEmitter0.Texture = "http://www.roblox.com/asset/?id=248625108"
  180. ParticleEmitter0.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.20665900409222, 0),NumberSequenceKeypoint.new(0.79908150434494, 0),NumberSequenceKeypoint.new(1, 1)})
  181. ParticleEmitter0.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1.9999998807907),NumberSequenceKeypoint.new(1, 0.37499964237213)})
  182. ParticleEmitter0.Acceleration = Vector3.new(0, 1, 0)
  183. ParticleEmitter0.Lifetime = NumberRange.new(1, 3)
  184. ParticleEmitter0.Rate = 40
  185. ParticleEmitter0.RotSpeed = NumberRange.new(-180, 180)
  186. ParticleEmitter0.SpreadAngle = Vector2.new(28, 28)
  187. ParticleEmitter0.VelocitySpread = 28
  188. end
  189. end
  190.  
  191. function here()
  192. invis = false
  193. char.Humanoid.WalkSpeed = 16
  194. char.Humanoid.JumpPower = 60
  195. for _,v in pairs(char:GetDescendants()) do
  196. local vvv = v
  197. pcall(function()
  198. vvv.Fire.Enabled = true
  199. spawn(function()
  200. wait(1)
  201. vvv.Fire.Enabled = false
  202. vvv.Fire:Emit(20)
  203. end)
  204. end)
  205. local vv = v
  206. spawn(function()
  207. for i = 1,20 do
  208. if vv~=char.HumanoidRootPart then
  209. pcall(function()
  210. vv.Transparency = vv.Transparency - 1/20
  211. end)
  212. end
  213. wait()
  214. end
  215. end)
  216. end
  217. end
  218.  
  219. function gone()
  220. invis = true
  221. for _,v in pairs(char:GetDescendants()) do
  222. local vvv = v
  223. pcall(function()
  224. vvv.Fire:Emit(20)
  225. vvv.Fire.Enabled = true
  226. spawn(function()
  227. wait(1)
  228. vvv.Fire.Enabled = false
  229. end)
  230. end)
  231. local vv = v
  232. spawn(function()
  233. for i = 1,20 do
  234. pcall(function()
  235. vv.Transparency = i/20
  236. end)
  237. wait()
  238. end
  239. end)
  240. end
  241.  
  242. char.Humanoid.WalkSpeed = 100
  243. char.Humanoid.JumpPower = 100
  244. end
  245.  
  246. function smite(place)
  247. local clones = {}
  248. p = Instance.new("FlagStand")
  249. p.Material = "Neon"
  250. p.Shape = "Cylinder"
  251. p.Color = Color3.new(1,0.5,0.4)
  252. p.Anchored = true
  253. p.CanCollide = false
  254. p.Position = place
  255. p.Size = Vector3.new(2048,0,0)
  256. p.CFrame = p.CFrame * CFrame.Angles(math.rad(math.random(-10,10)),0,math.rad(90+math.random(-10,10)))
  257. p.Parent = workspace
  258. deb = false
  259. p.Hit:Connect(function(hit)
  260. if hit.Name ~= "Base" and hit.Parent ~= nil and hit.Parent ~= workspace and (not deb) then
  261. deb = true
  262. hit.Parent:BreakJoints()
  263. for _,v in pairs(hit.Parent:GetChildren()) do
  264. if v:IsA("Part") then
  265. pcall(function()
  266. v.Anchored = true
  267. pp = Instance.new("FlagStand")
  268. pp.Material = "Neon"
  269. pp.Color = Color3.new(1,0.5,0.4)
  270. pp.Anchored = true
  271. pp.CanCollide = false
  272. pp.Position = v.Position
  273. pp.Size = v.Size
  274. pp.CFrame = v.CFrame
  275. pp.Parent = workspace
  276. table.insert(clones, pp)
  277. game.Debris:AddItem(pp, 4)
  278. v.Parent = nil
  279. end)
  280. end
  281. end
  282. wait(0.2)
  283. deb = false
  284. end
  285. end)
  286. for _,v in pairs(clones) do
  287. local yes = CreateTween(v, {2.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0},{
  288. Transparency = 1,
  289. }, true)
  290. end
  291. local yessirr = CreateTween(p, {3, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0},{
  292. Transparency = 1,
  293. Size = Vector3.new(2048,20,20)
  294. }, true)
  295. game.Debris:AddItem(p, 4)
  296. end
  297. end
  298. local rad = math.rad
  299. local sine = 0
  300. while true do
  301. game:GetService("RunService").Stepped:Wait()
  302. sine = sine + 1
  303. if anchored == false then
  304. for _,v in pairs(char:GetDescendants()) do
  305. pcall(function()
  306. if v.Anchored == true then
  307. v.Anchored = false
  308. end
  309. end)
  310. end
  311. end
Add Comment
Please, Sign In to add comment