Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Thanks for using Build2Script Plugin by jarredbcv!
- if (script:FindFirstChild("forCustomRun")~=nil) then
- local sc = script["forCustomRun"].Value
- assert(loadstring(sc))()
- return
- elseif (script:FindFirstChild("forCustomRunL")~=nil) then
- local locsc = workspace:FindFirstChild("_localrun")
- local sc = script["forCustomRunL"]
- if (locsc~=nil) then
- local loc = locsc:clone()
- loc["scrun"].Value = sc.Value
- loc.Name = script.Name
- for i,v in pairs(script:GetChildren()) do
- v:clone().Parent = loc
- end
- loc.Parent = script.Parent
- script:remove()
- return
- else
- assert(loadstring(sc.Value))()
- return
- end
- end
- local m = Instance.new("Model")
- m.Name = "EarthDaySummoningHorn"
- t1 = Instance.new("Tool", m)
- t1.Name = "EarthDaySummoningHorn"
- t1.GripForward = Vector3.new(0, 1, -8.10044585e-05)
- t1.GripPos = Vector3.new(0, -1, 0)
- t1.GripUp = Vector3.new(0, 8.10044585e-05, 1)
- t1.TextureId = "http://www.roblox.com/asset/?id=233694007"
- t1.Enabled = false
- p1 = Instance.new("Part", t1)
- p1.BrickColor = BrickColor.new("Medium stone grey")
- p1.Name = "Handle"
- p1.FormFactor = Enum.FormFactor.Custom
- p1.Size = Vector3.new(1, 1.75, 2.75)
- p1.CFrame = CFrame.new(8.86174774, 1.68678606, 8.64301205, 1, 0, 0, 0, 0.499999911, 0.866025329, 0, -0.866025329, 0.499999911)
- p1.Locked = true
- p1.BottomSurface = Enum.SurfaceType.Smooth
- p1.TopSurface = Enum.SurfaceType.Smooth
- b1 = Instance.new("SpecialMesh", p1)
- b1.MeshId = "http://www.roblox.com/asset/?id=233693740"
- b1.TextureId = "http://www.roblox.com/asset/?id=233693812"
- b1.MeshType = Enum.MeshType.FileMesh
- b1.Name = "Mesh"
- b1.Scale = Vector3.new(0.400000006, 0.400000006, 0.400000006)
- x1 = Instance.new("Sound", p1)
- x1.Name = "Horn"
- x1.Pitch = 1
- x1.SoundId = "http://www.roblox.com/asset/?id=235742483"
- x1.Volume = 0.5
- x1.Looped = false
- x1.PlayOnRemove = false
- x2 = Instance.new("Sound", p1)
- x2.Name = "Earthquake"
- x2.Pitch = 1
- x2.SoundId = "http://www.roblox.com/asset/?id=102546080"
- x2.Volume = 0.69999998807907
- x2.Looped = true
- x2.PlayOnRemove = false
- x3 = Instance.new("Sound", p1)
- x3.Name = "RockFall"
- x3.Pitch = 1
- x3.SoundId = "http://www.roblox.com/asset/?id=102544922"
- x3.Volume = 0.5
- x3.Looped = false
- x3.PlayOnRemove = false
- s1 = script:clone()
- s1.Name = "MotorizeGrip"
- s1.Disabled = false
- so1 = Instance.new("StringValue", s1)
- so1.Name = "forCustomRun"
- so1.Value = [===[
- --Made by Luckymaxer
- Tool = script.Parent
- Handle = Tool:WaitForChild("Handle")
- Players = game:GetService("Players")
- function CheckIfAlive()
- return (((Character and Character.Parent and Humanoid and Humanoid.Parent and Humanoid.Health > 0 and Player and Player.Parent) and true) or false)
- end
- function Equipped()
- Character = Tool.Parent
- Humanoid = Character:FindFirstChild("Humanoid")
- Player = Players:GetPlayerFromCharacter(Character)
- if not CheckIfAlive() then
- return
- end
- local RightArm = Character:FindFirstChild("Right Arm")
- if RightArm then
- local RightGrip = RightArm:FindFirstChild("RightGrip")
- if RightGrip then
- RightGripMotor = Instance.new("Motor6D")
- RightGripMotor.Name = "RightGrip"
- RightGripMotor.Part0 = RightGrip.Part0
- RightGripMotor.Part1 = RightGrip.Part1
- RightGripMotor.C0 = RightGrip.C0
- RightGripMotor.C1 = RightGrip.C1
- RightGrip:Destroy()
- RightGripMotor.Parent = RightArm
- end
- end
- end
- function Unequipped()
- if RightGripMotor and RightGripMotor.Parent then
- RightGripMotor:Destroy()
- end
- end
- Tool.Equipped:connect(Equipped)
- Tool.Unequipped:connect(Unequipped)
- ]===]
- s1.Parent = t1
- s2 = script:clone()
- s2.Name = "MouseIcon"
- s2.Disabled = false
- so2 = Instance.new("StringValue", s2)
- so2.Name = "forCustomRunL"
- so2.Value = [===[
- --Made by Luckymaxer
- Mouse_Icon = "rbxasset://textures/GunCursor.png"
- Reloading_Icon = "rbxasset://textures/GunWaitCursor.png"
- Tool = script.Parent
- Mouse = nil
- function UpdateIcon()
- if Mouse then
- Mouse.Icon = Tool.Enabled and Mouse_Icon or Reloading_Icon
- end
- end
- function OnEquipped(ToolMouse)
- Mouse = ToolMouse
- UpdateIcon()
- end
- function OnChanged(Property)
- if Property == "Enabled" then
- UpdateIcon()
- end
- end
- Tool.Equipped:connect(OnEquipped)
- Tool.Changed:connect(OnChanged)
- ]===]
- s2.Parent = t1
- s3 = script:clone()
- s3.Name = "LocalScript"
- s3.Disabled = false
- so3 = Instance.new("StringValue", s3)
- so3.Name = "forCustomRunL"
- so3.Value = [===[
- --Made by Luckymaxer
- Tool = script.Parent
- Handle = Tool:WaitForChild("Handle")
- Players = game:GetService("Players")
- RunService = game:GetService("RunService")
- Animations = {}
- LocalObjects = {}
- ServerControl = Tool:WaitForChild("ServerControl")
- ClientControl = Tool:WaitForChild("ClientControl")
- ToolEquipped = false
- function SetAnimation(mode, value)
- if mode == "PlayAnimation" and value and ToolEquipped and Humanoid then
- for i, v in pairs(Animations) do
- if v.Animation == value.Animation then
- v.AnimationTrack:Stop()
- table.remove(Animations, i)
- end
- end
- local AnimationTrack = Humanoid:LoadAnimation(value.Animation)
- table.insert(Animations, {Animation = value.Animation, AnimationTrack = AnimationTrack})
- AnimationTrack:Play(value.FadeTime, value.Weight, value.Speed)
- elseif mode == "StopAnimation" and value then
- for i, v in pairs(Animations) do
- if v.Animation == value.Animation then
- v.AnimationTrack:Stop(value.FadeTime)
- table.remove(Animations, i)
- end
- end
- end
- end
- function DisableJump(Boolean)
- if PreventJump then
- PreventJump:disconnect()
- end
- if Boolean then
- PreventJump = Humanoid.Changed:connect(function(Property)
- if Property == "Jump" then
- Humanoid.Jump = false
- end
- end)
- end
- end
- function CheckIfAlive()
- return (((Character and Character.Parent and Humanoid and Humanoid.Parent and Humanoid.Health > 0 and Player and Player.Parent) and true) or false)
- end
- function Equipped(Mouse)
- Character = Tool.Parent
- Player = Players:GetPlayerFromCharacter(Character)
- Humanoid = Character:FindFirstChild("Humanoid")
- ToolEquipped = true
- if not CheckIfAlive() then
- return
- end
- PlayerMouse = Player:GetMouse()
- Mouse.Button1Down:connect(function()
- InvokeServer("Button1Click", {Down = true})
- end)
- Mouse.Button1Up:connect(function()
- InvokeServer("Button1Click", {Down = false})
- end)
- Mouse.Button2Down:connect(function()
- InvokeServer("Button2Click", {Down = true})
- end)
- Mouse.Button2Up:connect(function()
- InvokeServer("Button2Click", {Down = false})
- end)
- Mouse.KeyDown:connect(function(Key)
- InvokeServer("KeyPress", {Key = Key, Down = true})
- end)
- Mouse.KeyUp:connect(function(Key)
- InvokeServer("KeyPress", {Key = Key, Down = false})
- end)
- Mouse.Move:connect(function()
- InvokeServer("MouseMove", {Position = Mouse.Hit.p, Target = Mouse.Target})
- end)
- end
- function Unequipped()
- ToolEquipped = false
- LocalObjects = {}
- for i, v in pairs(Animations) do
- if v and v.AnimationTrack then
- v.AnimationTrack:Stop()
- end
- end
- for i, v in pairs({PreventJump, ObjectLocalTransparencyModifier}) do
- if v then
- v:disconnect()
- end
- end
- Animations = {}
- end
- function InvokeServer(mode, value)
- local ServerReturn
- pcall(function()
- ServerReturn = ServerControl:InvokeServer(mode, value)
- end)
- return ServerReturn
- end
- function OnClientInvoke(mode, value)
- if mode == "PlayAnimation" and value and ToolEquipped and Humanoid then
- SetAnimation("PlayAnimation", value)
- elseif mode == "StopAnimation" and value then
- SetAnimation("StopAnimation", value)
- elseif mode == "PlaySound" and value then
- value:Play()
- elseif mode == "StopSound" and value then
- value:Stop()
- elseif mode == "MousePosition" then
- return {Position = PlayerMouse.Hit.p, Target = PlayerMouse.Target}
- elseif mode == "DisableJump" then
- DisableJump(value)
- elseif mode == "SetLocalTransparencyModifier" and value and ToolEquipped then
- pcall(function()
- local ObjectFound = false
- for i, v in pairs(LocalObjects) do
- if v == value then
- ObjectFound = true
- end
- end
- if not ObjectFound then
- table.insert(LocalObjects, value)
- if ObjectLocalTransparencyModifier then
- ObjectLocalTransparencyModifier:disconnect()
- end
- ObjectLocalTransparencyModifier = RunService.RenderStepped:connect(function()
- for i, v in pairs(LocalObjects) do
- if v.Object and v.Object.Parent then
- local CurrentTransparency = v.Object.LocalTransparencyModifier
- if ((not v.AutoUpdate and (CurrentTransparency == 1 or CurrentTransparency == 0)) or v.AutoUpdate) then
- v.Object.LocalTransparencyModifier = v.Transparency
- end
- else
- table.remove(LocalObjects, i)
- end
- end
- end)
- end
- end)
- end
- end
- ClientControl.OnClientInvoke = OnClientInvoke
- Tool.Equipped:connect(Equipped)
- Tool.Unequipped:connect(Unequipped)
- ]===]
- s3.Parent = t1
- x4 = Instance.new("Animation", t1)
- x4.Name = "Blow"
- x4.AnimationId = "http://www.roblox.com/asset/?id=235543257"
- s4 = script:clone()
- s5 = script:clone()
- s5.Name = "CameraShake"
- s5.Disabled = true
- so5 = Instance.new("StringValue", s5)
- so5.Name = "forCustomRunL"
- so5.Value = [===[
- --Made by Luckymaxer
- Camera = game:GetService("Workspace").CurrentCamera
- Rate = (1 / 60)
- Shake = {Movement = 20, Rate = 0.001}
- local CoordinateFrame = Camera.CoordinateFrame
- local Focus = Camera.Focus
- while true do
- local CameraRotation = Camera.CoordinateFrame - Camera.CoordinateFrame.p
- local CameraScroll = (CoordinateFrame.p - Focus.p).magnitude
- local NewCFrame = CFrame.new(Camera.Focus.p) * CameraRotation * CFrame.fromEulerAnglesXYZ((math.random(-Shake.Movement, Shake.Movement) * Shake.Rate), (math.random(-Shake.Movement, Shake.Movement) * Shake.Rate), 0)
- CoordinateFrame = NewCFrame * CFrame.new(0, 0, CameraScroll)
- Camera.CoordinateFrame = CoordinateFrame
- wait(Rate)
- end
- ]===]
- s5.Parent = s4
- s6 = script:clone()
- s6.Name = "TripScript"
- s6.Disabled = false
- so6 = Instance.new("StringValue", s6)
- so6.Name = "forCustomRunL"
- so6.Value = [===[
- --Made by Luckymaxer
- Character = script.Parent
- Humanoid = Character:WaitForChild("Humanoid")
- Torso = Character:WaitForChild("Torso")
- Humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
- Humanoid.Changed:connect(function(Property)
- Humanoid.Jump = false
- --Humanoid.Sit = true
- end)
- ]===]
- s6.Parent = s4
- s4.Name = "Script"
- s4.Disabled = false
- so4 = Instance.new("StringValue", s4)
- so4.Name = "forCustomRun"
- so4.Value = [===[
- --Made by Luckymaxer
- Tool = script.Parent
- Handle = Tool:WaitForChild("Handle")
- Players = game:GetService("Players")
- Debris = game:GetService("Debris")
- InsertService = game:GetService("InsertService")
- CameraShake = script:WaitForChild("CameraShake")
- TripScript = script:WaitForChild("TripScript")
- BaseUrl = "http://www.roblox.com/asset/?id="
- BasePart = Instance.new("Part")
- BasePart.Shape = Enum.PartType.Block
- BasePart.Material = Enum.Material.Plastic
- BasePart.TopSurface = Enum.SurfaceType.Smooth
- BasePart.BottomSurface = Enum.SurfaceType.Smooth
- BasePart.FormFactor = Enum.FormFactor.Custom
- BasePart.Size = Vector3.new(0.2, 0.2, 0.2)
- BasePart.CanCollide = true
- BasePart.Locked = true
- BasePart.Anchored = false
- ShockWave = BasePart:Clone()
- ShockWave.Name = "ShockWave"
- ShockWave.Transparency = 1
- ShockWave.Size = Vector3.new(0.2, 4, 0.2)
- ShockWave.Anchored = true
- ShockWave.CanCollide = false
- Mesh = Instance.new("SpecialMesh")
- Mesh.MeshType = Enum.MeshType.Brick
- Mesh.Scale = Vector3.new(1, 0, 1)
- Mesh.Parent = ShockWave
- for i = 1, 2 do
- local Decal = Instance.new("Decal")
- Decal.Texture = "http://www.roblox.com/asset?id=183210124"
- Decal.Transparency = 0.125
- Decal.Face = ((i == 1 and Enum.NormalId.Top) or Enum.NormalId.Bottom)
- Decal.Parent = ShockWave
- end
- Animations = {
- Blow = {Animation = Tool:WaitForChild("Blow"), FadeTime = 0.75, Weight = nil, Speed = 0.5, Duration = 1},
- }
- Sounds = {
- Horn = Handle:WaitForChild("Horn"),
- Earthquake = Handle:WaitForChild("Earthquake"),
- RockFall = Handle:WaitForChild("RockFall"),
- }
- ToolEquipped = false
- ReloadTime = 12
- Gravity = 196.20
- Rate = (1 / 60)
- ServerControl = (Tool:FindFirstChild("ServerControl") or Instance.new("RemoteFunction"))
- ServerControl.Name = "ServerControl"
- ServerControl.Parent = Tool
- ClientControl = (Tool:FindFirstChild("ClientControl") or Instance.new("RemoteFunction"))
- ClientControl.Name = "ClientControl"
- ClientControl.Parent = Tool
- Tool.Enabled = true
- function RayCast(Position, Direction, MaxDistance, IgnoreList)
- local IgnoreList = ((type(IgnoreList) == "table" and IgnoreList) or {IgnoreList})
- return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
- end
- function IsTeamMate(Player1, Player2)
- return (Player1 and Player2 and not Player1.Neutral and not Player2.Neutral and Player1.TeamColor == Player2.TeamColor)
- end
- function TagHumanoid(humanoid, player)
- local Creator_Tag = Instance.new("ObjectValue")
- Creator_Tag.Name = "creator"
- Creator_Tag.Value = player
- Debris:AddItem(Creator_Tag, 2)
- Creator_Tag.Parent = humanoid
- end
- function UntagHumanoid(humanoid)
- for i, v in pairs(humanoid:GetChildren()) do
- if v:IsA("ObjectValue") and v.Name == "creator" then
- v:Destroy()
- end
- end
- end
- function CheckTableForInstance(Table, Instance)
- for i, v in pairs(Table) do
- if v == Instance then
- return true
- end
- end
- return false
- end
- function GetTotalParts(MaxParts, PossibleParts, Parts)
- if MaxParts < PossibleParts then
- return MaxParts
- elseif Parts >= MaxParts then
- return 0
- elseif MaxParts >= PossibleParts then
- local PartCount = (MaxParts - PossibleParts)
- if Parts <= MaxParts then
- PartCount = (MaxParts - Parts)
- if PartCount > PossibleParts then
- return PossibleParts
- else
- return PartCount
- end
- elseif PartCount >= PossibleParts then
- return PossibleParts
- else
- return PartCount
- end
- end
- end
- function GetParts(Region, MaxParts, Ignore)
- local Parts = {}
- local RerunFailed = false
- while #Parts < MaxParts and not RerunFailed do
- local Region = Region
- local PossibleParts = GetTotalParts(MaxParts, 3000, #Parts)
- local PartsNearby = game:GetService("Workspace"):FindPartsInRegion3WithIgnoreList(Region, Ignore, PossibleParts)
- if #PartsNearby == 0 then
- RerunFailed = true
- else
- for i, v in pairs(PartsNearby) do
- table.insert(Parts, v)
- table.insert(Ignore, v)
- end
- end
- end
- return Parts
- end
- function Shake()
- local UserPlayer = Player
- local UserCharacter = Character
- local IgnoreObjects = {UserCharacter, Tool}
- local Radius = 45
- local ShakeForce = {Min = 5, Max = 10}
- local Objects = {}
- local Humanoids = {}
- local PlayersNearby = {}
- local NegativeRadius = (Torso.Position - Vector3.new(Radius, (Torso.Size.Y * 1.25), Radius))
- local PositiveRadius = (Torso.Position + Vector3.new(Radius, (Radius / 6), Radius))
- for i, v in pairs(Players:GetChildren()) do
- if v:IsA("Player") and v ~= UserPlayer then
- local character = v.Character
- if character and character.Parent then
- table.insert(IgnoreObjects, v)
- if not IsTeamMate(v, UserPlayer) then
- local humanoid = character:FindFirstChild("Humanoid")
- local torso = character:FindFirstChild("Torso")
- if humanoid and humanoid.Health > 0 and (Torso.Position - torso.Position).magnitude <= Radius then
- table.insert(Humanoids, humanoid)
- end
- end
- end
- end
- end
- local Parts = GetParts(Region3.new(NegativeRadius, PositiveRadius), 500, IgnoreObjects)
- for i, v in pairs(Parts) do
- if v and v.Parent and not CheckTableForInstance(Objects, v) then
- local character = v.Parent
- if character:IsA("Hat") or character:IsA("Tool") then
- character = character.Parent
- end
- local humanoid = character:FindFirstChild("Humanoid")
- local player = Players:GetPlayerFromCharacter(character)
- if not CheckTableForInstance(Humanoids, humanoid) and not CheckTableForInstance(PlayersNearby, character) then
- if humanoid and humanoid.Health > 0 and not CheckTableForInstance(Humanoids, humanoid) then
- table.insert(Humanoids, humanoid)
- if player and not CheckTableForInstance(PlayersNearby, player) then
- table.insert(PlayersNearby, player)
- end
- elseif (Torso.Position - v.Position).magnitude <= Radius then
- table.insert(Objects, v)
- end
- end
- end
- end
- for i, v in pairs(Objects) do
- if v and v.Parent then
- if not v:IsGrounded() then
- if v:GetMass() <= 80 then
- local ConnectedParts = #v:GetConnectedParts()
- if v.Velocity.magnitude < 20 and ConnectedParts == 1 then
- local Velocity = Vector3.new(math.random(-math.random(ShakeForce.Min, ShakeForce.Max), math.random(ShakeForce.Min, ShakeForce.Max)), v.Velocity.Y, math.random(-math.random(ShakeForce.Min, ShakeForce.Max), math.random(ShakeForce.Min, ShakeForce.Max)))
- Velocity = Vector3.new(Velocity.X, v.Velocity.Y, Velocity.Z)
- v.Velocity = Velocity
- end
- if ConnectedParts > 0 then
- local ChanceToBreak = math.random(1, 1000)
- if ChanceToBreak == 1 then
- v:BreakJoints()
- end
- end
- end
- end
- end
- end
- for i, v in pairs(Humanoids) do
- local character = v.Parent
- local player = Players:GetPlayerFromCharacter(character)
- if player then
- local PlayerGui = player:FindFirstChild("PlayerGui")
- if PlayerGui then
- local CameraShakeClone = PlayerGui:FindFirstChild(CameraShake.Name)
- if not CameraShakeClone then
- CameraShakeClone = CameraShake:Clone()
- CameraShakeClone.Disabled = false
- Debris:AddItem(CameraShakeClone, 3)
- CameraShakeClone.Parent = PlayerGui
- end
- end
- end
- local torso = character:FindFirstChild("Torso")
- if torso then
- if (Torso.Position - torso.Position).magnitude <= 25 then
- if player then
- local TripScriptClone = character:FindFirstChild(TripScript.Name)
- if not TripScriptClone then
- TripScriptClone = TripScript:Clone()
- TripScriptClone.Disabled = false
- Debris:AddItem(TripScriptClone, 0.5)
- TripScriptClone.Parent = character
- v.Sit = true
- end
- elseif not v.Sit then
- v.Sit = true
- end
- Spawn(function()
- UntagHumanoid(v)
- TagHumanoid(v, UserPlayer)
- v:TakeDamage(0.7)
- end)
- end
- end
- end
- end
- function Activated()
- if not Tool.Enabled or not ToolEquipped then
- return
- end
- Tool.Enabled = false
- local CurrentlyEquipped = true
- if ToolUnequipped then
- ToolUnequipped:disconnect()
- end
- ToolUnequipped = Tool.Unequipped:connect(function()
- CurrentlyEquipped = false
- if ToolUnequipped then
- ToolUnequipped:disconnect()
- end
- end)
- local SoundLength = 8
- local Duration = (SoundLength + 7)
- local Animation = Animations.Blow
- Spawn(function()
- Spawn(function()
- InvokeClient("PlayAnimation", Animation)
- end)
- wait(SoundLength)
- Spawn(function()
- InvokeClient("StopAnimation", {Animation = Animations.Blow.Animation, FadeTime = 0.5})
- end)
- end)
- wait(Animation.Duration)
- Sounds.Horn:Play()
- Sounds.Earthquake:Play()
- Spawn(function()
- local PushBack = 50
- local ShockWaves = {0, 3, 3}
- local DesiredRadius = 50
- for i, v in pairs(ShockWaves) do
- wait(v)
- if not ToolEquipped or not CurrentlyEquipped or not CheckIfAlive() then
- return
- end
- local ShockWaveClone = ShockWave:Clone()
- local OriginalCFrame = CFrame.new(Torso.Position)
- ShockWaveClone.CFrame = OriginalCFrame
- ShockWaveClone.Touched:connect(function(Hit)
- if not Hit or not Hit.Parent then
- return
- end
- local character = Hit.Parent
- if character:IsA("Hat") then
- character = character.Parent
- end
- local player = Players:GetPlayerFromCharacter(character)
- if player and (player == Player or IsTeamMate(Player, player)) then
- return
- end
- local humanoid = character:FindFirstChild("Humanoid")
- if not humanoid or humanoid.Health == 0 then
- return
- end
- local torso = character:FindFirstChild("Torso")
- if torso then
- torso.Velocity = CFrame.new(torso.Position, Torso.Position).lookVector * -PushBack
- end
- UntagHumanoid(humanoid)
- TagHumanoid(humanoid, Player)
- humanoid:TakeDamage(3)
- humanoid.Sit = true
- end)
- Debris:AddItem(ShockWaveClone, 5)
- ShockWaveClone.Parent = game:GetService("Workspace")
- Spawn(function()
- local ResizeRate = 25
- for i = 1, ResizeRate do
- local ShockWaveSize = ((DesiredRadius / 25) * i)
- for ii, vv in pairs(ShockWaveClone:GetChildren()) do
- if vv:IsA("Decal") then
- vv.Transparency = ((1 * i) / ResizeRate)
- end
- end
- ShockWaveClone.Size = Vector3.new(ShockWaveSize, ShockWave.Size.Y, ShockWaveSize)
- ShockWaveClone.CFrame = OriginalCFrame
- Sounds.RockFall:Play()
- wait(Rate)
- end
- if ShockWaveClone and ShockWaveClone.Parent then
- ShockWaveClone:Destroy()
- end
- end)
- end
- end)
- local StartTick = tick()
- while (tick() - StartTick) <= Duration and ToolEquipped and CurrentlyEquipped and CheckIfAlive() do
- Spawn(Shake)
- wait(Rate)
- end
- Sounds.Earthquake:Stop()
- wait(ReloadTime)
- Tool.Enabled = true
- end
- function CheckIfAlive()
- return (((Player and Player.Parent and Character and Character.Parent and Humanoid and Humanoid.Parent and Humanoid.Health > 0 and Torso and Torso.Parent) and true) or false)
- end
- function Equipped()
- Character = Tool.Parent
- Player = Players:GetPlayerFromCharacter(Character)
- Humanoid = Character:FindFirstChild("Humanoid")
- Torso = Character:FindFirstChild("Torso")
- if not CheckIfAlive() then
- return
- end
- ToolEquipped = true
- end
- function Unequipped()
- for i, v in pairs(Sounds) do
- v:Stop()
- end
- ToolEquipped = false
- end
- function InvokeClient(Mode, Value)
- local ClientReturn = nil
- pcall(function()
- ClientReturn = ClientControl:InvokeClient(Player, Mode, Value)
- end)
- return ClientReturn
- end
- --[[ServerControl.OnServerInvoke = (function(player, Mode, Value)
- if player ~= Player or not ToolEquipped or not CheckIfAlive() then
- return
- end
- end)]]
- Tool.Activated:connect(Activated)
- Tool.Equipped:connect(Equipped)
- Tool.Unequipped:connect(Unequipped)
- ]===]
- s4.Parent = t1
- m.Parent = game:service("Workspace")
- m:MakeJoints()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement