Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --utlib
- 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
- --utlib
- Debris = game:GetService("Debris")
- char=owner.Character
- local anchored = false
- force=Instance.new("ForceField", char)
- force.Visible = false
- ls=char.Torso["Left Shoulder"]
- rs=char.Torso["Right Shoulder"]
- ll=char.Torso["Left Hip"]
- rl=char.Torso["Right Hip"]
- ne=char.Torso["Neck"]
- lsc0=ls.C0
- rsc0=rs.C0
- nec0=ne.C0
- local invis=false
- local hwe
- local e=it("RemoteEvent",char)
- hugging=false
- e.Name="huge"
- local i=it("RemoteEvent",char)
- i.Name="SpoopyDisappearOwO"
- a=[[
- uis=game:GetService("UserInputService")
- local r=owner.Character.huge
- local i=owner.Character.SpoopyDisappearOwO
- uis.InputBegan:Connect(function(k,g)
- if k.KeyCode==Enum.KeyCode.H and not g then
- r:FireServer()
- elseif k.KeyCode==Enum.KeyCode.Q and not g then
- i:FireServer("yes", nil)
- elseif k.KeyCode==Enum.KeyCode.E and not g then
- i:FireServer("no", game.Players.LocalPlayer:GetMouse().hit.p)
- end
- end)
- ]]
- NLS(a,owner.Character)
- game:GetService("RunService").Heartbeat:Connect(function()
- pcall(function()
- if hugging then
- char.Head.CanCollide=false
- char.Torso.CanCollide=false
- else
- char.Head.CanCollide=true
- char.Torso.CanCollide=true
- end
- end)
- end)
- function CreateTween(part, info, goal, play) --[Info]: length, style, direction, repeatTimes, willRepeat, waitTime
- local Goal = goal
- local TwInfo = TweenInfo.new(unpack(info))
- local Tween = ts:Create(part, TwInfo, Goal)
- if play then Tween:Play() end
- return Tween
- end
- function hug(who)
- pcall(function()
- hugging=true
- for _,v in pairs(char:GetChildren()) do if v:IsA("BasePart") then v.Massless = true end end
- char.Head.CFrame=who.Head.CFrame
- hwe=it("Weld",char.Head)
- hwe.Part0=char.Torso
- hwe.Part1=who.Head
- hwe.C0=hwe.C0*ca(rd(0),rd(180),rd(0))+v3(0,1.5,-1)
- local RJTween = CreateTween(ne, {0.25, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0},{
- C0=nec0*ca(rd(-5),rd(0),rd(-5))+v3(0,0,.1),
- }, true)
- local RJTween = CreateTween(ls, {0.25, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0},{
- C0=lsc0*ca(rd(0),rd(30),rd(-20))+v3(0,.1,.5),
- }, true)
- local RJTween = CreateTween(rs, {0.25, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0},{
- C0=rsc0*ca(rd(0),rd(-30),rd(20))+v3(0,.1,.5),
- }, true)
- wait(1)
- local RJTween = CreateTween(ne, {0.25, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0},{
- C0=nec0*ca(rd(40),rd(0),rd(50))+v3(0.06,0,-.1),
- }, true)
- local RJTween = CreateTween(ls, {0.25, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0},{
- C0=lsc0*ca(rd(0),rd(-30),rd(-115))+v3(0,.2,-.5),
- }, true)
- local RJTween = CreateTween(rs, {0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0},{
- C0=rsc0*ca(rd(0),rd(30),rd(115))+v3(0,.2,-.5),
- }, true)
- char.Head.Hearts:Emit(math.random(1,3))
- end)
- end
- function dehug()
- pcall(function()
- for _,v in pairs(char:GetChildren()) do if v:IsA("BasePart") then v.Massless = false end end
- hwe:Destroy()
- local RJTween = CreateTween(ne, {0.25, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0},{
- C0=nec0,
- }, true)
- local RJTween = CreateTween(ls, {0.25, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0},{
- C0=lsc0,
- }, true)
- local RJTween = CreateTween(rs, {0.25, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0},{
- C0=rsc0,
- }, true)
- hugging=false
- end)
- end
- e.OnServerEvent:Connect(function()
- if not hugging then
- local r=rn(char.Torso.CFrame.p,char.Torso.CFrame.LookVector*5)
- local hit,pos,norm=workspace:FindPartOnRay(r,char)
- if hit then
- if hit.Parent==nil then return end
- if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("Head") and not hugging then
- hug(hit.Parent)
- hit.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(hit.Parent:FindFirstChildOfClass("Humanoid").MaxHealth - hit.Parent:FindFirstChildOfClass("Humanoid").Health)
- end
- end
- else
- dehug()
- end
- end)
- i.OnServerEvent:Connect(function(pla, a, literallydie)
- if a == "yes" then
- if not invis then
- gone()
- else
- here()
- end
- elseif a == "no" then
- p = Instance.new("FlagStand")
- p.Material = "Neon"
- p.Shape = "Cylinder"
- p.Color = Color3.new(1,0.5,0.4)
- p.Anchored = true
- p.CanCollide = false
- p.Position = char.HumanoidRootPart.Position
- p.Size = Vector3.new(2048,3,3)
- p.CFrame = p.CFrame * CFrame.Angles(math.rad(math.random(-10,10)),0,math.rad(90+math.random(-10,10)))
- p.Parent = workspace
- local yessirr = CreateTween(p, {1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0},{
- Transparency = 1,
- Size = Vector3.new(2048,0,0)
- }, true)
- game.Debris:AddItem(p, 2)
- wait(1)
- smite(literallydie)
- end
- end)
- ParticleEmitter15 = Instance.new("ParticleEmitter")
- ParticleEmitter15.Name = "Hearts"
- ParticleEmitter15.Parent = char.Head
- ParticleEmitter15.Speed = NumberRange.new(10, 10)
- ParticleEmitter15.Rotation = NumberRange.new(-20, 20)
- ParticleEmitter15.Color = ColorSequence.new(Color3.new(1, 1, 0.498039),Color3.new(1, 0.666667, 1))
- ParticleEmitter15.Enabled = false
- ParticleEmitter15.LightEmission = 1
- ParticleEmitter15.Texture = "rbxassetid://36721240"
- ParticleEmitter15.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.29621124267578, 0),NumberSequenceKeypoint.new(0.81974738836288, 0),NumberSequenceKeypoint.new(1, 1)})
- ParticleEmitter15.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(0.07822085916996, 1.4375001192093),NumberSequenceKeypoint.new(1, 1.4375001192093)})
- ParticleEmitter15.Acceleration = Vector3.new(0, -2, 0)
- ParticleEmitter15.Drag = 3
- ParticleEmitter15.Lifetime = NumberRange.new(0.80000001192093, 1.2999999523163)
- ParticleEmitter15.Rate = 4
- ParticleEmitter15.RotSpeed = NumberRange.new(-20, 20)
- ParticleEmitter15.SpreadAngle = Vector2.new(-30, 30)
- ParticleEmitter15.VelocitySpread = -30
- for _,v in pairs(char:GetChildren()) do
- if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
- local ParticleEmitter0 = Instance.new("ParticleEmitter")
- ParticleEmitter0.Name = "Fire"
- ParticleEmitter0.Enabled = false
- ParticleEmitter0.Parent = v
- ParticleEmitter0.Speed = NumberRange.new(1, 3)
- ParticleEmitter0.Rotation = NumberRange.new(-180, 180)
- --ParticleEmitter0.Color = ColorSequence.new(Color3.new(1, 0.333333, 0),Color3.new(1, 0.333333, 0))
- ParticleEmitter0.LightEmission = 1
- ParticleEmitter0.Texture = "http://www.roblox.com/asset/?id=248625108"
- ParticleEmitter0.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.20665900409222, 0),NumberSequenceKeypoint.new(0.79908150434494, 0),NumberSequenceKeypoint.new(1, 1)})
- ParticleEmitter0.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1.9999998807907),NumberSequenceKeypoint.new(1, 0.37499964237213)})
- ParticleEmitter0.Acceleration = Vector3.new(0, 1, 0)
- ParticleEmitter0.Lifetime = NumberRange.new(1, 3)
- ParticleEmitter0.Rate = 40
- ParticleEmitter0.RotSpeed = NumberRange.new(-180, 180)
- ParticleEmitter0.SpreadAngle = Vector2.new(28, 28)
- ParticleEmitter0.VelocitySpread = 28
- end
- end
- function here()
- invis = false
- char.Humanoid.WalkSpeed = 16
- char.Humanoid.JumpPower = 60
- for _,v in pairs(char:GetDescendants()) do
- local vvv = v
- pcall(function()
- vvv.Fire.Enabled = true
- spawn(function()
- wait(1)
- vvv.Fire.Enabled = false
- vvv.Fire:Emit(20)
- end)
- end)
- local vv = v
- spawn(function()
- for i = 1,20 do
- if vv~=char.HumanoidRootPart then
- pcall(function()
- vv.Transparency = vv.Transparency - 1/20
- end)
- end
- wait()
- end
- end)
- end
- end
- function gone()
- invis = true
- for _,v in pairs(char:GetDescendants()) do
- local vvv = v
- pcall(function()
- vvv.Fire:Emit(20)
- vvv.Fire.Enabled = true
- spawn(function()
- wait(1)
- vvv.Fire.Enabled = false
- end)
- end)
- local vv = v
- spawn(function()
- for i = 1,20 do
- pcall(function()
- vv.Transparency = i/20
- end)
- wait()
- end
- end)
- end
- char.Humanoid.WalkSpeed = 100
- char.Humanoid.JumpPower = 100
- end
- function smite(place)
- local clones = {}
- p = Instance.new("FlagStand")
- p.Material = "Neon"
- p.Shape = "Cylinder"
- p.Color = Color3.new(1,0.5,0.4)
- p.Anchored = true
- p.CanCollide = false
- p.Position = place
- p.Size = Vector3.new(2048,0,0)
- p.CFrame = p.CFrame * CFrame.Angles(math.rad(math.random(-10,10)),0,math.rad(90+math.random(-10,10)))
- p.Parent = workspace
- deb = false
- p.Hit:Connect(function(hit)
- if hit.Name ~= "Base" and hit.Parent ~= nil and hit.Parent ~= workspace and (not deb) then
- deb = true
- hit.Parent:BreakJoints()
- for _,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Part") then
- pcall(function()
- v.Anchored = true
- pp = Instance.new("FlagStand")
- pp.Material = "Neon"
- pp.Color = Color3.new(1,0.5,0.4)
- pp.Anchored = true
- pp.CanCollide = false
- pp.Position = v.Position
- pp.Size = v.Size
- pp.CFrame = v.CFrame
- pp.Parent = workspace
- table.insert(clones, pp)
- game.Debris:AddItem(pp, 4)
- v.Parent = nil
- end)
- end
- end
- wait(0.2)
- deb = false
- end
- end)
- for _,v in pairs(clones) do
- local yes = CreateTween(v, {2.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0},{
- Transparency = 1,
- }, true)
- end
- local yessirr = CreateTween(p, {3, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0},{
- Transparency = 1,
- Size = Vector3.new(2048,20,20)
- }, true)
- game.Debris:AddItem(p, 4)
- end
- end
- local rad = math.rad
- local sine = 0
- while true do
- game:GetService("RunService").Stepped:Wait()
- sine = sine + 1
- if anchored == false then
- for _,v in pairs(char:GetDescendants()) do
- pcall(function()
- if v.Anchored == true then
- v.Anchored = false
- end
- end)
- end
- end
Add Comment
Please, Sign In to add comment