Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on = false
- local rig
- local s
- local s2
- local hum
- local net
- local net2
- local br = Instance.new("BlurEffect",game:GetService("Lighting"))
- br.Size = 0
- for i,v in pairs(owner.Character:GetDescendants()) do
- if v:IsA("BasePart") then
- local physProperties = PhysicalProperties.new(1000)
- v.CustomPhysicalProperties = physProperties
- end
- end
- local bl = Instance.new("BloomEffect",game:GetService("Lighting"))
- bl.Size = 0
- bl.Intensity = 0
- bl.Threshold = 0
- coroutine.wrap(function()
- while true do
- task.wait()
- if on then
- owner.Character.Humanoid.WalkSpeed = 65
- owner.Character.Humanoid.JumpPower = 50
- else
- owner.Character.Humanoid.WalkSpeed = 16
- owner.Character.Humanoid.JumpPower = 50
- end
- end
- end)()
- function onoff(_,wha,hitp)
- if wha == "active" then
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.125
- local object = workspace
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
- local goal = {}
- goal.Gravity = 20
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.125
- local object = br
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
- local goal = {}
- goal.Size = 2.5
- local blu = tweenService:Create(object, tweenInfo, goal)
- blu:Play()
- local goal2 = {}
- goal2.Size = 30
- goal2.Intensity = 1.25
- goal2.Threshold = 0.5
- local blu2 = tweenService:Create(bl, tweenInfo, goal)
- blu2:Play()
- on = true
- for i,v in pairs(workspace:GetDescendants()) do
- if v:IsA("Sound") then
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.125
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
- local goal = {}
- goal.Pitch = v.PlaybackSpeed * 0.45
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- elseif v:IsA("Humanoid") then
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.125
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
- local goal = {}
- goal.WalkSpeed = v.WalkSpeed * 0.75
- goal.JumpPower = 7.84
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- elseif v:IsA("BodyVelocity") then
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.125
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
- local goal = {}
- goal.Velocity = v.Velocity * 0.5
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- elseif v:IsA("BodyForce") then
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.125
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
- local goal = {}
- goal.Force = v.Force * 0.5
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- elseif v:IsA("BodyGyro") then
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.125
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
- local goal = {}
- goal.P = v.P * 0.5
- goal.D = v.D * 0.5
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- end
- end
- elseif wha == "deactive" then
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.125
- local object = workspace
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
- local goal = {}
- goal.Gravity = 196
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.5
- local object = br
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
- local goal = {}
- goal.Size = 0
- local blu = tweenService:Create(object, tweenInfo, goal)
- blu:Play()
- local goal2 = {}
- goal2.Size = 0
- goal2.Intensity = 0
- goal2.Threshold = 0
- local blu2 = tweenService:Create(bl, tweenInfo, goal)
- blu2:Play()
- on = false
- for i,v in pairs(workspace:GetDescendants()) do
- if v:IsA("Sound") then
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.125
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
- local goal = {}
- goal.Pitch = v.PlaybackSpeed * 2.22222222222
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- elseif v:IsA("Humanoid") then
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.125
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
- local goal = {}
- goal.WalkSpeed = v.WalkSpeed * 1.33333333333
- goal.JumpPower = 50
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- elseif v:IsA("BodyVelocity") then
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.125
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
- local goal = {}
- goal.Velocity = v.Velocity * 2
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- elseif v:IsA("BodyForce") then
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.125
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
- local goal = {}
- goal.Force = v.Force * 2
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- elseif v:IsA("BodyGyro") then
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.125
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
- local goal = {}
- goal.P = v.P * 2
- goal.D = v.D * 2
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- end
- end
- elseif wha == "grab" then
- rig = Instance.new("RigidConstraint",owner.Character.HumanoidRootPart)
- s = Instance.new("Attachment",owner.Character.HumanoidRootPart)
- s.WorldCFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,owner.Character.Humanoid.RootPart.Size.Z) * CFrame.Angles(0,0,math.rad(-65))
- s2 = Instance.new("Attachment",hitp)
- if hitp.Parent:FindFirstChildWhichIsA("Humanoid") then
- hum = hitp.Parent:FindFirstChildWhichIsA("Humanoid")
- hum.PlatformStand = true
- net = hitp.Parent:FindFirstChildWhichIsA("Part"):GetNetworkOwner()
- net2 = hitp.Parent:FindFirstChildWhichIsA("Part")
- hitp.Parent:FindFirstChildWhichIsA("Part"):SetNetworkOwner(owner)
- end
- rig.Attachment1 = s
- rig.Attachment0 = s2
- elseif wha == "letgo" then
- s2:Destroy()
- s:Destroy()
- rig:Destroy()
- if hum then
- hum.PlatformStand = false
- hum = nil
- net2:SetNetworkOwner(net)
- net2 = nil
- net = nil
- end
- end
- end
- e = Instance.new("RemoteEvent",owner.PlayerGui)
- e.OnServerEvent:Connect(onoff)
- print()
- NLS([[
- print()
- local e = script.Parent
- local count2 = 0
- mouse = owner:GetMouse()
- local grav = workspace.Gravity
- count = 0
- mouse.KeyDown:Connect(function(key)
- key = key:lower()
- if key == "e" then
- count = count + 1
- if count == 1 then
- grav = workspace.Gravity
- e:FireServer("active")
- coroutine.wrap(function()
- for i = 1, 75 do
- wait(0.01)
- workspace.Gravity = grav
- end
- end)()
- elseif count == 2 then
- count = 0
- e:FireServer("deactive")
- coroutine.wrap(function()
- for i = 1, 75 do
- wait(0.01)
- workspace.Gravity = grav
- end
- end)()
- end
- elseif key == "g" then
- count2 = count2 + 1
- if count2 == 1 then
- e:FireServer("grab",mouse.Target,mouse.Hit)
- elseif count2 == 2 then
- e:FireServer("letgo")
- count2 = 0
- end
- end
- end)
- local vault = false
- game:GetService("RunService").RenderStepped:Connect(function()
- if count == 1 then
- if owner.Character.Humanoid ~= nil then
- if owner.Character.Humanoid.MoveDirection ~= Vector3.new(0,0,0) then
- local params = RaycastParams.new()
- params.FilterDescendantsInstances = {owner.Character:GetDescendants()}
- params.FilterType = Enum.RaycastFilterType.Blacklist
- local dir = owner.Character.HumanoidRootPart.CFrame.lookVector * 5 + owner.Character.HumanoidRootPart.CFrame.upVector * -1.5
- local result = game.Workspace:Raycast(owner.Character.HumanoidRootPart.Position, dir,params)
- if result then
- local dir2 = owner.Character.HumanoidRootPart.CFrame.lookVector * 5 + owner.Character.HumanoidRootPart.CFrame.upVector * 1.5
- local result2 = game.Workspace:Raycast(owner.Character.HumanoidRootPart.Position, dir2,params)
- if not result2 and not vault then
- vault = true
- local velocity = Instance.new("BodyVelocity",owner.Character.HumanoidRootPart)
- velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- velocity.Velocity = owner.Character.HumanoidRootPart.CFrame.LookVector * 65 + Vector3.new(0,30,0)
- game:GetService("Debris"):AddItem(velocity,0.15)
- wait(0.75)
- vault = false
- end
- end
- end
- end
- end
- end)
- ]],e)
- while wait(0.25) do
- if owner.Character.Humanoid.MoveDirection ~= Vector3.new(0,0,0) and on then
- for i,clone in pairs(owner.Character:GetDescendants()) do
- pcall(function()
- if clone:IsA("BasePart") then
- local v = Instance.new("SpawnLocation",owner.Character)
- v.Enabled = false
- v.Name = ""
- game:GetService("Debris"):AddItem(v,0.5)
- v.CFrame = clone.CFrame
- v.Parent = workspace
- v.CanCollide = false
- v.Size = clone.Size + Vector3.new(0.05,0.05,0.05)
- v.Anchored = true
- v.Material = "Neon"
- v.Transparency = 0.7
- v.Color = Color3.fromRGB(255,255,255)
- v.Position = v.Position + Vector3.new(clone.Velocity.X * owner:GetNetworkPing() * 2,clone.Velocity.Y * owner:GetNetworkPing() * 2,clone.Velocity.Z * owner:GetNetworkPing() * 2)
- if clone:FindFirstChildOfClass("SpecialMesh") then
- local mesh = clone:FindFirstChildOfClass("SpecialMesh"):Clone()
- mesh.Parent = v
- mesh.TextureId = ""
- end
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.5
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.Transparency = 1
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- local goal2 = {}
- goal2.Color = Color3.fromRGB(0,0,0)
- local tween2 = tweenService:Create(object, tweenInfo, goal2)
- tween2:Play()
- end
- end)
- end
- coroutine.wrap(function()
- for i = 1, 5 do
- wait(0.0078125)
- for i,clone in pairs(owner.Character:GetDescendants()) do
- pcall(function()
- if clone:IsA("BasePart") then
- local v = Instance.new("SpawnLocation",owner.Character)
- v.Enabled = false
- v.Name = ""
- game:GetService("Debris"):AddItem(v,0.5)
- v.CFrame = clone.CFrame
- v.Parent = workspace
- v.CanCollide = false
- v.Size = clone.Size + Vector3.new(0.05,0.05,0.05)
- v.Anchored = true
- v.Material = "Neon"
- v.Transparency = 0.7
- v.Position = v.Position + Vector3.new(clone.Velocity.X * owner:GetNetworkPing() * 2,clone.Velocity.Y * owner:GetNetworkPing() * 2,clone.Velocity.Z * owner:GetNetworkPing() * 2)
- v.Color = Color3.fromRGB(255,255,255)
- if clone:FindFirstChildOfClass("SpecialMesh") then
- local mesh = clone:FindFirstChildOfClass("SpecialMesh"):Clone()
- mesh.Parent = v
- mesh.TextureId = ""
- end
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.5
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.Transparency = 1
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- local goal2 = {}
- goal2.Color = Color3.fromRGB(0,0,0)
- local tween2 = tweenService:Create(object, tweenInfo, goal2)
- tween2:Play()
- end
- end)
- end
- end
- end)()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement