Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------------------------
- Script in SSS
- -----------------------
- local AnimAttrack = nil
- local AnimAttrack2 = nil
- local Distance = 0
- local body = nil
- local Event = script.ThunderEvent
- Event.OnServerEvent:Connect(function(player,Enabled,mouse)
- Enabled = false
- local Character = player.Character
- local Humanoid = Character:WaitForChild("Humanoid")
- Holding = Humanoid:LoadAnimation(script.Hold)
- Holding:Play()
- end)
- Event.OnServerEvent:Connect(function(player,Enabled,mouse)
- Enabled = true
- local Character = player.Character
- local Humanoid = Character:WaitForChild("Humanoid")
- Holding:Stop()
- local Release = Humanoid:LoadAnimation(script.Release)
- Release:Play()
- local Effect = game.ReplicatedStorage.ModelMoves.ThunderClap:Clone()
- player.Character.LeftFoot.Transparency = 1
- player.Character.LeftHand.Transparency = 1
- player.Character.LeftLowerArm.Transparency = 1
- player.Character.LeftLowerLeg.Transparency = 1
- player.Character.LeftUpperArm.Transparency = 1
- player.Character.LeftUpperLeg.Transparency = 1
- player.Character.LowerTorso.Transparency = 1
- player.Character.RightFoot.Transparency = 1
- player.Character.RightHand.Transparency = 1
- player.Character.RightLowerArm.Transparency = 1
- player.Character.RightLowerLeg.Transparency = 1
- player.Character.RightUpperArm.Transparency = 1
- player.Character.RightUpperLeg.Transparency = 1
- player.Character.UpperTorso.Transparency = 1
- player.Character.Head.Transparency = 1
- Effect.Parent = player.Character.HumanoidRootPart
- Effect.CFrame = player.Character.HumanoidRootPart.CFrame.Position
- wait(0.1)
- Effect.Anchored = false
- for i,v in pairs(player.Character:GetChildren()) do
- if v:IsA("Accessory") then
- for acess,parts in pairs(v:GetChildren()) do
- if parts:IsA("Part") or parts:IsA("MeshPart") or parts:IsA("WedgePart") then
- parts.Transparency = 1
- end
- end
- end
- end
- wait(0.1)
- body = Instance.new("BodyVelocity")
- body.Parent = player.Character.LowerTorso
- body.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- body.Velocity = player.Character.HumanoidRootPart.CFrame.lookVector * Vector3.new(400,400,400)
- wait(0.3)
- player.Character.LeftFoot.Transparency = 0
- player.Character.LeftHand.Transparency = 0
- player.Character.LeftLowerArm.Transparency = 0
- player.Character.LeftLowerLeg.Transparency = 0
- player.Character.LeftUpperArm.Transparency = 0
- player.Character.LeftUpperLeg.Transparency = 0
- player.Character.LowerTorso.Transparency = 0
- player.Character.RightFoot.Transparency = 0
- player.Character.RightHand.Transparency = 0
- player.Character.RightLowerArm.Transparency = 0
- player.Character.RightLowerLeg.Transparency = 0
- player.Character.RightUpperArm.Transparency = 0
- player.Character.RightUpperLeg.Transparency = 0
- player.Character.UpperTorso.Transparency = 0
- player.Character.Head.Transparency = 0
- for i,v in pairs(player.Character:GetChildren()) do
- if v:IsA("Accessory") then
- for acess,parts in pairs(v:GetChildren()) do
- if parts:IsA("Part") or parts:IsA("MeshPart") or parts:IsA("WedgePart") then
- parts.Transparency = 0
- end
- end
- end
- end
- body:Destroy()
- wait(0.6)
- player.Character.Humanoid.WalkSpeed = 16
- for i,v in pairs(player.Character:GetChildren()) do
- if v:IsA("MeshPart") or v:IsA("Part") then
- print("yes")
- end
- end
- Event:FireClient(player)
- end)
- ---------------------------------
- Local Script in Starter Pack
- ---------------------------------
- wait(2)
- -----------Variables
- local player = game.Players.LocalPlayer
- local Mouse = player:GetMouse()
- local AnimAttrack = nil
- local AnimAttrack2 = nil
- local gyring = false
- local Enabled = false
- local Event = script.ThunderEvent
- local mouse = player:GetMouse()
- local UIS = game:GetService("UserInputService")
- ------------------------------------------
- --------------- Hold
- UIS.InputBegan:Connect(function(Key,processed)
- if processed then
- return
- elseif Key.KeyCode == Enum.KeyCode.E and not Enabled then
- Enabled = true
- local Character = player.Character
- gyring = true
- ---------- BodyGyro
- bodpos = Instance.new("BodyPosition")
- bodpos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- bodpos.Position = Character:WaitForChild("HumanoidRootPart").Position
- bodpos.Parent = Character:WaitForChild("HumanoidRootPart")
- bodgyro = Instance.new("BodyGyro")
- bodgyro.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
- bodgyro.CFrame = mouse.Hit
- bodgyro.P = 10000
- bodgyro.Parent = Character:WaitForChild("HumanoidRootPart")
- while gyring == true do
- bodgyro.CFrame = mouse.Hit
- wait()
- -------------------------------
- end
- end
- end)
- --------------------------------------
- ------------Release
- UIS.InputEnded:Connect(function(Key,processed)
- if processed then
- return
- elseif Key.KeyCode == Enum.KeyCode.E and Enabled then
- Enabled = false
- wait(0.6)
- player.Character.Humanoid.WalkSpeed = 16
- bodpos:Destroy()
- bodgyro:Destroy()
- Enabled = true
- gyring = false
- Event:FireServer(Enabled,mouse.Hit)
- end
- end)
- Event.OnClientEvent:Connect(function()
- --wait(cooldown)
- --debounce = false
- Enabled = false
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement