Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Synapse Decompiler
- -- Purchase Here: https://brack4712.xyz/synapse/purchase/
- Player = game.Players.LocalPlayer
- local Character = Player.Character
- if not Character or not Character.Parent then
- Character = Player.CharacterAdded:wait()
- end
- humanoid = Character:WaitForChild("Humanoid")
- mouse = Player:GetMouse()
- vector = Vector3.new()
- UserInputService = game:GetService("UserInputService")
- if Player.PlayerGui:FindFirstChild("TouchGui") then
- Player.PlayerGui:FindFirstChild("TouchGui"):remove()
- end
- game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui"):SetTopbarTransparency(1)
- origcameraoffset = Vector3.new(0.2, 0.8, 0)
- if UserInputService.GamepadEnabled then
- origcameraoffset = Vector3.new(0, 0, 0)
- end
- cantchangeanim = false
- humanoid.CameraOffset = origcameraoffset
- storymode = nil
- if workspace:FindFirstChild("storymode") then
- storymode = workspace:FindFirstChild("storymode")
- end
- RunService = game:GetService("RunService")
- workspace.Camera.CameraType = "Custom"
- workspace.Camera.CameraSubject = humanoid
- custo = false
- renderstepped = RunService.Heartbeat
- ContentProvider = game:GetService("ContentProvider")
- rs = game.ReplicatedStorage
- rootpart = Character.HumanoidRootPart
- gui = Player.PlayerGui:WaitForChild("MainGui")
- effectz = rs:WaitForChild("effect")
- repeat
- wait()
- until Character.Parent
- local TweenService = game:GetService("TweenService")
- combatfolder = Character:WaitForChild("combat")
- allweps = rs:WaitForChild("weapons")
- keyinput = Player:WaitForChild("keyinput")
- StarterGui = game:GetService("StarterGui")
- StarterGui:SetCore("ChatWindowPosition", UDim2.new(0, 0, 0.475, 0))
- normalstepped = RunService.Stepped
- hud = gui:WaitForChild("Menu3")
- equipsword = false
- getsword = nil
- weptyp = ""
- gunmode = {}
- tool = rs.Tool:clone()
- tool.Parent = Character
- canautorotate = false
- disableautorotate = false
- changehud = UserInputService.TouchEnabled
- local StarterGui = game:GetService("StarterGui")
- StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false)
- StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
- StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)
- function warning(text)
- local newwarn = gui.warn:clone()
- newwarn.Visible = true
- newwarn.info.Text = text
- newwarn.Name = "warning"
- newwarn.Parent = gui
- local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Quart, Enum.EasingDirection.Out, 0, true, 0)
- local propertyGoals = {
- Position = UDim2.new(0.3, 0, 0.5, 0)
- }
- local tween2 = TweenService:Create(newwarn, tweenInfo, propertyGoals)
- tween2:Play()
- end
- function blindeffect(tim)
- newblind = rs.blindeffect:clone()
- newblind.Parent = gui
- newblind.blin:TweenPosition(UDim2.new(3, 0, -0.5, 0), "Out", "Quad", tim, true)
- game.Debris:AddItem(newblind, tim)
- end
- function sound(part, id, vo, tim, loop)
- local introsound = Instance.new("Sound")
- introsound.Parent = part
- introsound.SoundId = "rbxassetid://" .. id
- if loop then
- introsound.Looped = loop
- else
- game.Debris:AddItem(introsound, 10)
- end
- if loop == nil then
- game.Debris:AddItem(introsound, 10)
- end
- if vo then
- introsound.Volume = vo
- end
- introsound:Play()
- if tim then
- game.Debris:AddItem(introsound, tim)
- end
- end
- currentmageffect = 120
- numbertable = {
- "rbxassetid://1594210834",
- "rbxassetid://1594211109",
- "rbxassetid://1594211374",
- "rbxassetid://1594211585",
- "rbxassetid://1594211790",
- "rbxassetid://1594212021",
- "rbxassetid://1594212249",
- "rbxassetid://1594212511",
- "rbxassetid://1594212727",
- "rbxassetid://1594210560"
- }
- lockcenter = true
- preivewacc = Instance.new("Folder")
- preivewacc.Parent = rootpart
- keyinput.OnClientEvent:connect(function(key, a, b, c, d, e, f, g)
- if key == "susanoo" then
- spawn(function()
- local susanoo = a
- while susanoo.Parent do
- renderstepped:wait()
- if susanoo and susanoo.Parent then
- else
- break
- end
- susanoo.Torso.bp.Position = rootpart.Position
- susanoo.Torso.bg.cframe = rootpart.CFrame
- end
- end)
- end
- if key == "taijutsu" then
- for _, v in pairs(gui.Menu2.misc.frame:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseEnter:connect(function()
- preivewacc:ClearAllChildren()
- if v.text.Text == "Rent/Buy" then
- else
- return
- end
- findacc = rs.allacc:FindFirstChild(v.item.Value.Name)
- if findacc then
- local gethat = findacc.hat:clone()
- equipmodeltobod(gethat)
- gethat.Parent = preivewacc
- gethat.Name = v.Name
- end
- end)
- v.MouseLeave:connect(function()
- end)
- v.MouseButton1Down:connect(function()
- sound(script, 154020879, 1)
- preivewacc:ClearAllChildren()
- currentbuy = v.item
- if v.text.Text == "Rent/Buy" then
- keyinput:FireServer("changeid", currentbuy)
- gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
- gui.followmouse.access.Visible = true
- gui.followmouse.access.Info.time.Text = "Time: 3 Days"
- gui.followmouse.access.Info.name.Text = currentbuy.Value.nam.Value
- gui.followmouse.access.Info.type.Text = string.upper(currentbuy.Value.Value)
- gui.followmouse.access.Info.money.Text = "Money: " .. currentbuy.Value.money.Value
- return
- end
- gui.followmouse.access.Visible = false
- keyinput:FireServer("acc", currentbuy)
- end)
- end
- end
- end
- if key == "coins" then
- gui.coins.Visible = true
- delay(2, function()
- gui.coins.Visible = false
- end)
- print(a .. "COINS")
- getlen = string.len(a)
- for gettt = 1, 5 do
- gui.coins:FindFirstChild(gettt).Image = ""
- end
- for gettt = 1, getlen do
- if tonumber(string.sub(a, gettt, gettt)) == 0 then
- gui.coins:FindFirstChild(gettt).Image = numbertable[10]
- else
- gui.coins:FindFirstChild(gettt).Image = numbertable[tonumber(string.sub(a, gettt, gettt))]
- end
- end
- end
- if key == "cooldown" then
- spawn(function()
- local namzzz = a
- local cooldowntim = b
- local ssdsds = gui.Menu3:FindFirstChild("key" .. namzzz)
- if ssdsds then
- local findgui = ssdsds:FindFirstChild("cooldown")
- if findgui then
- ssdsds.cooldown.Visible = true
- ssdsds.cooldown.Text = cooldowntim
- for nmb = 1, cooldowntim do
- wait(1)
- cooldowntim = cooldowntim - 1
- ssdsds.cooldown.Text = cooldowntim
- end
- ssdsds.cooldown.Visible = false
- end
- end
- end)
- end
- if key == "changekeyz" then
- for i = 1, #a do
- a[i].Image = b[i].Image
- end
- end
- if key == "sound" then
- introsound = Instance.new("Sound")
- introsound.Parent = script
- introsound.SoundId = "rbxassetid://" .. a
- introsound:Play()
- end
- if key == "lockcenter" then
- end
- if key == "message" then
- game.StarterGui:SetCore("ChatMakeSystemMessage", {
- Text = a,
- Color = BrickColor.new("Teal").Color,
- Font = Enum.Font.SourceSansBold,
- FontSize = Enum.FontSize.Size28
- })
- end
- if key == "declinemoney" then
- hud.trade.money.Text.Value = "Enter Money"
- end
- end)
- loadgui = Player.PlayerGui:WaitForChild("loadgui")
- loadgui.ImageLabel.Visible = false
- effectz.OnClientEvent:connect(function(key, a, b, c, d, e, f, g)
- print(key)
- if key == "rockeffect" then
- magx = (rootpart.CFrame.p - a.p).magnitude
- if magx < 100 then
- local cfr = a
- for i = 1, 5 do
- local der3 = math.random(7, 10)
- local handle24 = rs.elementfolder.earth.rock:clone()
- handle24.CanCollide = false
- handle24.Parent = rootpart
- handle24.CFrame = cfr
- handle24.Size = Vector3.new(der3, der3, der3)
- handle24.Anchored = false
- handle24.Velocity = Vector3.new(math.random(-50, 50), math.random(56, 78), math.random(-50, 50))
- local b44 = Instance.new("BodyAngularVelocity")
- b44.Parent = handle24
- b44.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
- b44.angularvelocity = Vector3.new(math.random(-7, 7), math.random(-7, 7), math.random(-7, 7))
- game.Debris:AddItem(handle24, 1)
- end
- end
- end
- if key == "fighteffect" then
- spawn(function()
- newpart = Instance.new("Part")
- newpart.Size = Vector3.new()
- newpart.CFrame = a
- newpart.CanCollide = false
- newpart.Anchored = true
- newpart.BrickColor = BrickColor.new("Bright yellow")
- newpart.Parent = rootpart
- game.Debris:AddItem(newpart, 0.3)
- for i = 1, 10 do
- local partA = newpart
- local attachmentA = Instance.new("Attachment", partA)
- attachmentA.Position = Vector3.new(0, 0, 0)
- local partB = newpart
- local attachmentB = Instance.new("Attachment", partB)
- attachmentB.Position = Vector3.new(0, 0, 0)
- local hingeConstraint = Instance.new("Beam", partA)
- hingeConstraint.Attachment0 = attachmentA
- hingeConstraint.Attachment1 = attachmentB
- hingeConstraint.Width0 = 0
- hingeConstraint.Width1 = 1
- hingeConstraint.LightEmission = 1
- hingeConstraint.Color = ColorSequence.new(newpart.BrickColor.Color)
- game.Debris:AddItem(attachmentA, 1)
- game.Debris:AddItem(attachmentB, 1)
- game.Debris:AddItem(hingeConstraint, 1)
- local tweenInfo = TweenInfo.new(0.3, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 5, false, 0)
- local tweenInfo2 = TweenInfo.new(0.3, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0, false, 0)
- local propertyGoals = {
- Position = Vector3.new(math.random(-7, 7), math.random(-7, 7), math.random(-7, 7))
- }
- local propertyGoals2 = {Width0 = 0, Width1 = 0}
- local propertyGoals3 = {
- Width0 = 0,
- Width1 = 0,
- CurveSize0 = math.random(-7, 7),
- CurveSize1 = math.random(-7, 7)
- }
- local tween = TweenService:Create(hingeConstraint, tweenInfo, propertyGoals2)
- local tween2 = TweenService:Create(attachmentB, tweenInfo2, propertyGoals)
- local tween4 = TweenService:Create(hingeConstraint, tweenInfo2, propertyGoals3)
- tween:Play()
- tween2:Play()
- tween4:Play()
- end
- end)
- end
- if key == "explode" then
- magx = (rootpart.CFrame.p - a.p).magnitude
- if magx < 50 then
- for i = 1, 20 do
- normalstepped:wait()
- humanoid.CameraOffset = origcameraoffset + Vector3.new(math.random(-3, 3) * 0.02, math.random(-3, 3) * 0.02, math.random(-3, 3) * 0.02)
- end
- humanoid.CameraOffset = origcameraoffset
- end
- end
- if key == "bodyflicker" then
- mag = (rootpart.CFrame.p - a.p).magnitude
- if mag <= currentmageffect then
- spawn(function()
- local beamz = script.beam:Clone()
- local spinztabl = {}
- local cfffr = a
- local amt = 10
- local tim = 0.1
- local sped = 150
- for s = 1, amt do
- local newspinz = beamz:clone()
- newspinz.CFrame = cfffr * CFrame.new(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
- origsp = CFrame.new(newspinz.CFrame.p, cfffr.p)
- newspinz.Parent = rootpart
- newspinz.Beam.Width0 = 1
- newspinz.Beam.Width1 = 1
- local tweenInfo = TweenInfo.new(0.15, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
- local propertyGoals = {Width0 = 0, Width1 = 0}
- local tween2 = TweenService:Create(newspinz.Beam, tweenInfo, propertyGoals)
- tween2:Play()
- newspinz.Beam.Color = ColorSequence.new(BrickColor.new("Really black").Color)
- newspinz.Anchored = true
- game.Debris:AddItem(newspinz, 0.2)
- end
- end)
- end
- end
- if key == "stopmode" then
- chargeanimz:Stop()
- charge2 = false
- keyinput:FireServer("mode", charge2)
- end
- if key == "stopcharge" then
- chargeanimz:Stop()
- charge = false
- keyinput:FireServer("charge", charge)
- end
- if key == "aurapart2" then
- mag = (rootpart.CFrame.p - a.p).magnitude
- if mag <= currentmageffect then
- spawn(function()
- local auras = rs.aura2:Clone()
- auras.BrickColor = BrickColor.new(b)
- auras.Parent = rootpart
- auras.Transparency = 0.5
- local cfsr = a * CFrame.Angles(0, 0, math.pi)
- auras.CFrame = cfsr
- auras.Size = auras.Size * c
- local keepsize = auras.Size
- local keepspinz = 0
- for bbfdfdfd = 1, 20 do
- normalstepped:wait()
- local added = math.random(-4, 4) * c
- auras.Size = keepsize + Vector3.new(added * 0.3, added * 0.3, added * 0.3)
- auras.CFrame = cfsr * CFrame.new(0, -2.2 + auras.Size.X / 2, 0) * CFrame.Angles(0, math.random(-5, 5), 0)
- humanoid.CameraOffset = origcameraoffset + Vector3.new(math.random(-3, 3) * 0.2, math.random(-3, 3) * 0.2, math.random(-3, 3) * 0.2)
- end
- humanoid.CameraOffset = origcameraoffset
- for bbfdfdfd = 1, 20 do
- normalstepped:wait()
- auras.Size = auras.Size + Vector3.new(1, 1, 1)
- auras.CFrame = cfsr * CFrame.new(0, -2.2 + auras.Size.X / 2, 0) * CFrame.Angles(0, math.random(-5, 5), 0)
- auras.Transparency = auras.Transparency + 0.08
- end
- auras:remove()
- end)
- end
- end
- if key == "aurapart" then
- mag = (rootpart.CFrame.p - a.p).magnitude
- if mag <= currentmageffect then
- spawn(function()
- local auras = rs.aura:Clone()
- auras.BrickColor = BrickColor.new(b)
- auras.Parent = rootpart
- local cfsr = a
- auras.CFrame = cfsr
- local keepspinz = 0
- for bbfdfdfd = 1, 50 do
- normalstepped:wait()
- keepspinz = keepspinz + 3
- auras.Size = auras.Size + Vector3.new(0.1, 0.1, 0.1)
- auras.CFrame = cfsr * CFrame.new(0, -2.2 + auras.Size.X / 2, 0) * CFrame.Angles(0, 0, math.pi / 2) * CFrame.Angles(keepspinz * 0.1, 0, 0)
- end
- for bbfdfdfd = 1, 50 do
- normalstepped:wait()
- keepspinz = keepspinz + 4
- auras.Size = auras.Size + Vector3.new(0.3, 0.3, 0.3)
- auras.CFrame = cfsr * CFrame.new(0, -2.2 + auras.Size.X / 2, 0) * CFrame.Angles(0, 0, math.pi / 2) * CFrame.Angles(keepspinz * 0.1, 0, 0)
- auras.Transparency = auras.Transparency + 0.01
- end
- for bbfdfdfd = 1, 20 do
- normalstepped:wait()
- keepspinz = keepspinz + 4
- auras.Size = auras.Size + Vector3.new(1, 1, 1)
- auras.CFrame = cfsr * CFrame.new(0, -2.2 + auras.Size.X / 2, 0) * CFrame.Angles(0, 0, math.pi / 2) * CFrame.Angles(keepspinz * 0.1, 0, 0)
- auras.Transparency = auras.Transparency + 0.08
- end
- auras:remove()
- end)
- end
- end
- if key == "modebeams" then
- mag = (rootpart.CFrame.p - a.p).magnitude
- if mag <= currentmageffect then
- spawn(function()
- local beamz = script.beam:Clone()
- local spinztabl = {}
- local cfffr = a
- local amt = 30
- local tim = 0.1
- local sped = 150
- local currentcolor = BrickColor.new("Gold").Color
- if b then
- currentcolor = BrickColor.new(b).Color
- end
- for s = 1, amt do
- normalstepped:wait()
- local newspinz = beamz:clone()
- newspinz.CFrame = cfffr * CFrame.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2))
- origsp = CFrame.new(newspinz.CFrame.p, cfffr.p)
- newspinz.Parent = rootpart
- newspinz.Beam.Width0 = 2
- newspinz.Beam.Width1 = 2
- local tweenInfo = TweenInfo.new(0.15, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
- local propertyGoals = {Width0 = 0, Width1 = 0}
- local tween2 = TweenService:Create(newspinz.Beam, tweenInfo, propertyGoals)
- tween2:Play()
- newspinz.Beam.Color = ColorSequence.new(currentcolor)
- local b = Instance.new("BodyVelocity")
- b.Parent = newspinz
- b.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- b.velocity = Vector3.new(0, sped, 0)
- game.Debris:AddItem(newspinz, 0.2)
- end
- end)
- end
- end
- if key == "clashnoise" then
- mag = (rootpart.CFrame.p - a.p).magnitude
- if mag <= currentmageffect then
- local hitz = script.hit:Clone()
- hitz.Parent = workspace
- hitz.CFrame = a
- sound(hitz, 154020979, 5)
- hitz.aab:remove()
- game.Debris:AddItem(hitz, 1)
- end
- end
- if key == "hiteffect" then
- mag = (rootpart.CFrame.p - a.p).magnitude
- if mag <= currentmageffect then
- local hitz = script.hit:Clone()
- hitz.Parent = workspace
- hitz.CFrame = a
- hitz.aab:Emit()
- spawn(function()
- local beamz = script.beam:Clone()
- local spinztabl = {}
- local cfffr = a
- local amt = 10
- local tim = 0.1
- local sped = 50
- for s = 1, amt do
- local newspinz = beamz:clone()
- newspinz.CFrame = cfffr * CFrame.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5))
- origsp = CFrame.new(newspinz.CFrame.p, cfffr.p)
- newspinz.CFrame = CFrame.new(newspinz.CFrame.p, cfffr.p) * CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi / 2, 0, 0)
- newspinz.Parent = rootpart
- newspinz.Beam.Color = ColorSequence.new(BrickColor.new("Gold").Color)
- local b = Instance.new("BodyVelocity")
- b.Parent = newspinz
- b.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- b.velocity = origsp.lookVector * sped
- game.Debris:AddItem(newspinz, 0.1)
- end
- end)
- game.Debris:AddItem(hitz, 0.5)
- end
- end
- if key == "pusheffect" then
- spawn(function()
- mag = (rootpart.CFrame.p - a.p).magnitude
- if mag <= currentmageffect then
- local beamz = script.beam:Clone()
- local spinztabl = {}
- local cfffr = a
- local amt = b
- local tim = c
- local sped = d
- for s = 1, amt do
- local newspinz = beamz:clone()
- newspinz.CFrame = cfffr * CFrame.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5))
- origsp = CFrame.new(newspinz.CFrame.p, cfffr.p)
- newspinz.CFrame = CFrame.new(newspinz.CFrame.p, cfffr.p) * CFrame.new(0, 0, -4) * CFrame.Angles(-math.pi / 2, 0, 0)
- newspinz.Parent = rootpart
- local ab = math.random(1, 2)
- if ab == 1 then
- else
- newspinz.Beam.Color = ColorSequence.new(BrickColor.Black().Color)
- end
- local b = Instance.new("BodyVelocity")
- b.Parent = newspinz
- b.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- b.velocity = origsp.lookVector * d
- game.Debris:AddItem(newspinz, c)
- end
- end
- end)
- end
- if key == "suckeffect" then
- spawn(function()
- mag = (rootpart.CFrame.p - a.p).magnitude
- if mag <= currentmageffect then
- local beamz = script.beam:Clone()
- local spinztabl = {}
- local cfffr = a
- local amt = b
- local tim = c
- local sped = d
- for s = 1, amt do
- wait(0.1)
- local newspinz = beamz:clone()
- newspinz.CFrame = cfffr * CFrame.new(math.random(-2, 2), 5, math.random(-2, 2))
- origsp = CFrame.new(newspinz.CFrame.p, cfffr.p)
- newspinz.CFrame = CFrame.new(newspinz.CFrame.p, cfffr.p) * CFrame.new(0, 0, -100) * CFrame.Angles(-math.pi / 2, 0, 0)
- newspinz.Parent = rootpart
- local ab = math.random(1, 2)
- if ab == 1 then
- else
- newspinz.Beam.Color = ColorSequence.new(BrickColor.Black().Color)
- end
- local b = Instance.new("BodyVelocity")
- b.Parent = newspinz
- b.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- b.velocity = origsp.lookVector * -d
- game.Debris:AddItem(newspinz, c)
- end
- end
- end)
- end
- if key == "putcloud" then
- spawn(function()
- mag = (rootpart.CFrame.p - b.p).magnitude
- if mag <= currentmageffect then
- do
- local col = BrickColor.new(a)
- local spinz = script.spin:Clone()
- local part = b
- local siz = c
- local handle2 = Instance.new("Part")
- local rise = d
- if d then
- rise = d
- else
- rise = 1
- end
- handle2.Size = Vector3.new(siz, siz, siz)
- handle2.Name = ""
- handle2.CFrame = part
- handle2.Material = "Neon"
- local ball = Instance.new("SpecialMesh")
- ball.Parent = handle2
- ball.MeshType = "Sphere"
- ball.Scale = Vector3.new(1, 1, 1)
- handle2.Anchored = true
- handle2.CanCollide = false
- handle2.BrickColor = col
- handle2.Parent = workspace
- handle2.Transparency = 1
- local spinztabl = {}
- game.Debris:AddItem(handle2, 9)
- delay(0, function()
- for s = 1, 3 do
- local newspinz = spinz:clone()
- newspinz.CFrame = handle2.CFrame * CFrame.Angles(0, math.random(-180, 180), 0) - Vector3.new(0, handle2.Size.Y / 2.5, 0)
- newspinz.Size = handle2.Size * 1.5 * Vector3.new(1, 0, 1) + Vector3.new(0, handle2.Size.Y / 6, 0)
- newspinz.Parent = handle2
- newspinz.BrickColor = col
- game.Debris:AddItem(newspinz, 9)
- table.insert(spinztabl, newspinz)
- wait(0.2)
- end
- end)
- game.Debris:AddItem(handle2, 10)
- local added = 2
- delay(0, function()
- while handle2.Parent do
- normalstepped:wait()
- added = added + 0.1 * (siz * 0.01)
- for _, v in pairs(spinztabl) do
- v.Size = v.Size + Vector3.new(0.1, added * 0.03, 0.1)
- v.CFrame = v.CFrame * CFrame.Angles(added * 0.01 * rise, added * 0.02, 0) + Vector3.new(0, (siz * 0.01 + added * 0.04) * rise, 0)
- v.Transparency = v.Transparency + 0.02
- end
- end
- end)
- wait(2)
- handle2:remove()
- end
- end
- end)
- end
- if key == "sandcombat" then
- spawn(function()
- mag = (rootpart.CFrame.p - b.CFrame.p).magnitude
- if mag <= currentmageffect then
- local col = BrickColor.new(a)
- local spinz = script.sand:Clone()
- local part = b
- local siz = c
- local transparency = d
- if transparency == nil then
- transparency = 0
- end
- local newspinz = spinz:clone()
- local angle = math.pi / 2
- local angle2 = math.random(-180, 180)
- newspinz.CFrame = part.CFrame * CFrame.Angles(0, angle, 0)
- newspinz.Size = newspinz.Size
- newspinz.Parent = workspace
- newspinz.BrickColor = col
- newspinz.Material = "SmoothPlastic"
- newspinz.Transparency = 1
- local direction = math.random(1, 2)
- if direction == 2 then
- direction = -1
- end
- local turn = math.random(1, 2)
- if turn == 2 then
- turn = -1
- end
- for i = 1, 10 do
- normalstepped:wait()
- if part and part.Parent then
- else
- break
- end
- newspinz.CFrame = part.CFrame * CFrame.new(0, 0, -i * 0.15) * CFrame.Angles(-i * 0.03 * direction * turn, angle, 0) * CFrame.Angles(0, i * 0.23 * direction, 0)
- newspinz.Transparency = newspinz.Transparency - 0.15
- newspinz.Size = newspinz.Size * 1.01
- end
- for i = 1, 20 do
- normalstepped:wait()
- if part and part.Parent then
- else
- break
- end
- newspinz.Transparency = newspinz.Transparency + 0.1
- newspinz.Size = newspinz.Size * 1.01
- newspinz.CFrame = newspinz.CFrame * CFrame.new(0, 0.1, 0.1) * CFrame.Angles(0, 0.1 * direction, 0)
- end
- end
- end)
- end
- if key == "sanddefence" then
- spawn(function()
- mag = (rootpart.CFrame.p - b.CFrame.p).magnitude
- if mag <= currentmageffect then
- local col = BrickColor.new(a)
- local spinz = script.spin:Clone()
- local part = b
- local siz = c
- local transparency = d
- if transparency == nil then
- transparency = 0
- end
- local handle2 = Instance.new("Part")
- handle2.Size = Vector3.new(siz, siz, siz)
- handle2.Name = ""
- handle2.CFrame = part.CFrame
- handle2.Material = "Neon"
- local ball = Instance.new("SpecialMesh")
- ball.Parent = handle2
- ball.MeshType = "Sphere"
- ball.Scale = Vector3.new(1, 1, 1)
- handle2.Anchored = true
- handle2.CanCollide = false
- handle2.BrickColor = col
- handle2.Parent = workspace
- game.Debris:AddItem(handle2, 9)
- handle2.Transparency = transparency
- handle2.Transparency = 1
- local spinztabl = {}
- for _, v in pairs(rs.elementfolder.sand.sandcoffin.notawel:GetChildren()) do
- if v:IsA("Texture") then
- local newpart = v:clone()
- newpart.Parent = handle2
- newpart.Transparency = 0.6
- end
- end
- local newspinz = spinz:clone()
- local angle = math.random(-180, 180)
- local angle2 = math.random(-180, 180)
- newspinz.CFrame = handle2.CFrame * CFrame.Angles(angle2, angle, 0)
- newspinz.Size = handle2.Size * 1.3 * Vector3.new(1, 0, 1) + Vector3.new(0, handle2.Size.Y / 4, 0)
- newspinz.Parent = handle2
- newspinz.BrickColor = col
- newspinz.Material = "SmoothPlastic"
- newspinz.Transparency = 0.6
- for i = 1, 90 do
- normalstepped:wait()
- if part and part.Parent then
- else
- break
- end
- handle2.CFrame = part.CFrame
- local otrsiz = math.random(-2, 2) * 0.5
- otrsiz = siz - otrsiz
- handle2.Size = Vector3.new(otrsiz, otrsiz, otrsiz)
- newspinz.CFrame = handle2.CFrame * CFrame.Angles(angle2, angle, 0) * CFrame.Angles(0, i * 0.05, 0)
- end
- game.Debris:AddItem(handle2, 0)
- game.Debris:AddItem(newspinz, 0)
- end
- end)
- end
- if key == "putexplosion" then
- spawn(function()
- mag = (rootpart.CFrame.p - b.p).magnitude
- if mag <= currentmageffect then
- do
- local col = BrickColor.new(a)
- local spinz = script.spin:Clone()
- local part = b
- local siz = c
- local transparency = d
- if transparency == nil then
- transparency = 0
- end
- local handle2 = Instance.new("Part")
- handle2.Size = Vector3.new(siz, siz, siz)
- handle2.Name = ""
- handle2.CFrame = part
- handle2.Material = "Neon"
- local ball = Instance.new("SpecialMesh")
- ball.Parent = handle2
- ball.MeshType = "Sphere"
- ball.Scale = Vector3.new(1, 1, 1)
- handle2.Anchored = true
- handle2.CanCollide = false
- handle2.BrickColor = col
- handle2.Parent = workspace
- game.Debris:AddItem(handle2, 9)
- handle2.Transparency = transparency
- local newpart = handle2:clone()
- newpart.Material = "Glass"
- newpart.Parent = handle2
- newpart.Transparency = 0.8
- newpart.Size = Vector3.new(siz, siz, siz) * 1.2
- newpart.BrickColor = BrickColor.White()
- local spinztabl = {}
- game.Debris:AddItem(newpart, 9)
- delay(0, function()
- for s = 1, 3 do
- local newspinz = spinz:clone()
- newspinz.CFrame = handle2.CFrame * CFrame.Angles(0, math.random(-180, 180), 0) - Vector3.new(0, handle2.Size.Y / 2.5, 0)
- newspinz.Size = handle2.Size * 1.5 * Vector3.new(1, 0, 1) + Vector3.new(0, handle2.Size.Y / 6, 0)
- newspinz.Parent = handle2
- game.Debris:AddItem(newspinz, 9)
- table.insert(spinztabl, newspinz)
- wait(0.2)
- end
- end)
- game.Debris:AddItem(handle2, 10)
- local kickawaysound = Instance.new("Sound")
- kickawaysound.Parent = handle2
- kickawaysound.SoundId = "rbxassetid://165970126"
- game.Debris:AddItem(kickawaysound, 9)
- kickawaysound.Pitch = 1 + math.random(-5, 5) * 0.05
- kickawaysound:Play()
- local explonpart = {}
- local baseexplo = Instance.new("Part")
- baseexplo.Transparency = 1
- baseexplo.BrickColor = col
- game.Debris:AddItem(baseexplo, 10)
- baseexplo.TopSurface = "Smooth"
- baseexplo.BottomSurface = "Smooth"
- baseexplo.Size = Vector3.new(siz, 0, siz)
- baseexplo.Name = ""
- baseexplo.CFrame = part * CFrame.Angles(math.random(-180, 180), math.random(-180, 180), math.random(-180, 180))
- baseexplo.Material = "Neon"
- game.Debris:AddItem(baseexplo, 9)
- local ballex = Instance.new("SpecialMesh")
- ballex.Parent = baseexplo
- ballex.MeshType = "Sphere"
- ballex.Scale = Vector3.new(3, 0.01, 3)
- baseexplo.Anchored = true
- baseexplo.CanCollide = false
- baseexplo.Parent = handle2
- local explosio = {}
- local decal = Instance.new("Decal")
- decal.Texture = "http://www.roblox.com/asset/?id=861747018"
- decal.Parent = baseexplo
- decal.Face = "Top"
- table.insert(explosio, decal)
- local decal = Instance.new("Decal")
- decal.Texture = "http://www.roblox.com/asset/?id=861747018"
- decal.Parent = baseexplo
- decal.Face = "Bottom"
- table.insert(explosio, decal)
- table.insert(explonpart, baseexplo)
- local baseexplo = Instance.new("Part")
- game.Debris:AddItem(baseexplo, 9)
- baseexplo.Transparency = 1
- baseexplo.BrickColor = col
- game.Debris:AddItem(baseexplo, 10)
- baseexplo.TopSurface = "Smooth"
- baseexplo.BottomSurface = "Smooth"
- baseexplo.Size = Vector3.new(siz, 0, siz)
- baseexplo.Name = ""
- baseexplo.CFrame = part * CFrame.Angles(math.random(-180, 180), math.random(-180, 180), math.random(-180, 180))
- baseexplo.Material = "Neon"
- local ballex = Instance.new("SpecialMesh")
- ballex.Parent = baseexplo
- ballex.MeshType = "Sphere"
- ballex.Scale = Vector3.new(3, 0.01, 3)
- baseexplo.Anchored = true
- baseexplo.CanCollide = false
- baseexplo.Parent = handle2
- local decal = Instance.new("Decal")
- decal.Texture = "http://www.roblox.com/asset/?id=861747018"
- decal.Parent = baseexplo
- decal.Face = "Top"
- table.insert(explosio, decal)
- local decal = Instance.new("Decal")
- decal.Texture = "http://www.roblox.com/asset/?id=861747018"
- decal.Parent = baseexplo
- decal.Face = "Bottom"
- table.insert(explosio, decal)
- table.insert(explonpart, baseexplo)
- local added = 2
- delay(0, function()
- while handle2.Parent do
- normalstepped:wait()
- added = added + 0.1 * (siz * 0.01)
- for _, v in pairs(explonpart) do
- v.Size = v.Size * 1.01 * Vector3.new(1, 0, 1)
- end
- for _, v in pairs(spinztabl) do
- v.Size = v.Size + Vector3.new(0.6, added * 0.03, 0.6)
- v.CFrame = v.CFrame * CFrame.Angles(0, added * 0.02, 0) + Vector3.new(0, siz * 0.01 + added * 0.04, 0)
- v.Transparency = v.Transparency + 0.02
- end
- for _, v in pairs(explosio) do
- v.Transparency = v.Transparency + 0.01
- end
- end
- end)
- for i = 1, 50 do
- normalstepped:wait()
- local otrsiz = math.random(-2, 2) * 0.5
- otrsiz = siz - otrsiz
- handle2.Size = Vector3.new(otrsiz, otrsiz, otrsiz)
- newpart.Size = Vector3.new(otrsiz, otrsiz, otrsiz) * 1.2
- end
- for i = 1, 10 do
- normalstepped:wait()
- handle2.Size = handle2.Size * 1.1
- handle2.Transparency = handle2.Transparency + 0.1
- newpart.Size = newpart.Size * 1.1
- newpart.Transparency = newpart.Transparency + 0.05
- end
- handle2:remove()
- end
- end
- end)
- end
- if a == "effect" then
- mag = (rootpart.CFrame.p - c.CFrame.p).magnitude
- if mag <= currentmageffect then
- geta = rs.ability:FindFirstChild(b)
- if geta then
- newef = geta:clone()
- newef.player.Value = key
- if c then
- newef.obj.Value = c
- end
- newef.Parent = Player.PlayerGui
- newef.Disabled = false
- end
- end
- end
- if key == "trail" then
- local part = Instance.new("Part")
- part.Anchored = true
- part.CanCollide = false
- part.formFactor = "Symmetric"
- part.TopSurface = 0
- part.BottomSurface = 0
- part.BrickColor = BrickColor.new(c)
- part.Transparency = 0.5
- part.Name = "Laser Shot"
- part.Locked = true
- part.Size = Vector3.new(0, 0, (a.p - b.p).magnitude)
- part.CFrame = CFrame.new((b.p + a.p) / 2 + 0 * (a.p - b.p).unit, a.p)
- part.Material = "Neon"
- local mesh = Instance.new("BlockMesh")
- mesh.Scale = Vector3.new(1, 1, 1)
- mesh.Parent = part
- part.Parent = rootpart
- game.Debris:AddItem(part, 0.05)
- end
- end)
- getcusto = workspace:WaitForChild("custo")
- incusto = false
- if getcusto.Value then
- incusto = true
- Player.PlayerScripts.CameraScript.Disabled = true
- keyinput:FireServer("reparent")
- wait(1)
- humanoid.WalkSpeed = 0
- idlanim = Instance.new("Animation")
- idlanim.AnimationId = "rbxassetid://" .. 1100326557
- idlanimz = humanoid:LoadAnimation(idlanim)
- idlanimz:Play()
- cloneitm = script.item:clone()
- getallcusto = rs.custo
- function createguis()
- movdown = 0
- getcustoss = getallcusto.face:GetChildren()
- for ssds = 1, #getcustoss do
- itm = getallcusto.face:FindFirstChild("face" .. ssds)
- if itm then
- movdown = movdown + 1
- newcloneitem = cloneitm:clone()
- newcloneitem.Position = UDim2.new(0.025, 0, 0.008 * (movdown - 1), 0)
- newcloneitem.info.name.Text = itm.nam.Value
- newcloneitem.text.Text = "F A C E"
- objval = Instance.new("ObjectValue")
- objval.Value = itm
- objval.Name = "item"
- objval.Parent = newcloneitem
- newcloneitem.info.img.Image = "http://www.roblox.com/asset/?id=1390077643"
- newcloneitem.Parent = gui.Menu2.face.frame
- end
- end
- getcustoss = getallcusto.face:GetChildren()
- for ssds = 1, #getcustoss do
- itm = getallcusto.face:FindFirstChild("brow" .. ssds)
- if itm then
- movdown = movdown + 1
- newcloneitem = cloneitm:clone()
- newcloneitem.Position = UDim2.new(0.025, 0, 0.008 * (movdown - 1), 0)
- newcloneitem.info.name.Text = itm.nam.Value
- newcloneitem.text.Text = "E Y E B R O W S"
- objval = Instance.new("ObjectValue")
- objval.Value = itm
- objval.Name = "item"
- objval.Parent = newcloneitem
- newcloneitem.info.img.Image = "http://www.roblox.com/asset/?id=1390077643"
- newcloneitem.Parent = gui.Menu2.face.frame
- end
- end
- getcustoss = getallcusto.face:GetChildren()
- for ssds = 1, #getcustoss do
- itm = getallcusto.face:FindFirstChild("scar" .. ssds)
- if itm then
- movdown = movdown + 1
- newcloneitem = cloneitm:clone()
- newcloneitem.Position = UDim2.new(0.025, 0, 0.008 * (movdown - 1), 0)
- newcloneitem.info.name.Text = itm.nam.Value
- newcloneitem.text.Text = "D E S I G N"
- objval = Instance.new("ObjectValue")
- objval.Value = itm
- objval.Name = "item"
- objval.Parent = newcloneitem
- newcloneitem.info.img.Image = "http://www.roblox.com/asset/?id=1390077643"
- newcloneitem.Parent = gui.Menu2.face.frame
- end
- end
- getcustoss = getallcusto.face:GetChildren()
- for ssds = 1, #getcustoss do
- itm = getallcusto.face:FindFirstChild("mouth" .. ssds)
- if itm then
- movdown = movdown + 1
- newcloneitem = cloneitm:clone()
- newcloneitem.Position = UDim2.new(0.025, 0, 0.008 * (movdown - 1), 0)
- newcloneitem.info.name.Text = itm.nam.Value
- newcloneitem.text.Text = "M O U T H"
- objval = Instance.new("ObjectValue")
- objval.Value = itm
- objval.Name = "item"
- objval.Parent = newcloneitem
- newcloneitem.info.img.Image = "http://www.roblox.com/asset/?id=1390077643"
- newcloneitem.Parent = gui.Menu2.face.frame
- end
- end
- getcustoss = getallcusto.hair:GetChildren()
- for ssds = 1, #getcustoss do
- itm = getallcusto.hair:FindFirstChild("hair" .. ssds)
- if itm then
- newcloneitem = cloneitm:clone()
- newcloneitem.Parent = gui.Menu2.hair.frame
- newcloneitem.Position = UDim2.new(0.025, 0, 0.008 * (ssds - 1), 0)
- newcloneitem.info.name.Text = itm.nam.Value
- objval = Instance.new("ObjectValue")
- objval.Value = itm
- objval.Name = "item"
- objval.Parent = newcloneitem
- newcloneitem.text.Text = "H A I R"
- newcloneitem.info.img.Image = "http://www.roblox.com/asset/?id=1390078054"
- end
- end
- getcustoss = getallcusto.outfit:GetChildren()
- for ssds = 1, #getcustoss do
- itm = getallcusto.outfit:FindFirstChild("outfit" .. ssds)
- if itm then
- newcloneitem = cloneitm:clone()
- newcloneitem.Parent = gui.Menu2.clothing.frame
- newcloneitem.Position = UDim2.new(0.025, 0, 0.008 * (ssds - 1), 0)
- newcloneitem.info.name.Text = itm.nam.Value
- objval = Instance.new("ObjectValue")
- objval.Value = itm
- objval.Name = "item"
- objval.Parent = newcloneitem
- newcloneitem.text.Text = "C L O T H I N G"
- newcloneitem.info.img.Image = "http://www.roblox.com/asset/?id=1390078460"
- end
- end
- end
- createguis()
- currentshirt = ""
- currentpants = ""
- currentface = ""
- currenteyecolor = ""
- currentmouth = ""
- currenthair = ""
- currentskin = ""
- currenthaircolor = ""
- currentbrow = ""
- currentscar = ""
- for _, v in pairs(gui.Menu2.face.frame:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseButton1Down:connect(function()
- if v.item.Value:FindFirstChild("bro") then
- currentbrow = v.item.Value.Value
- Character.Head.brows.Texture = v.item.Value.Value
- return
- end
- if v.item.Value:FindFirstChild("sca") then
- currentscar = v.item.Value.Value
- Character.Head.scar.Texture = v.item.Value.Value
- return
- end
- if v.item.Value:FindFirstChild("mou") then
- currentmouth = v.item.Value.Value
- Character.Head.mouth.Texture = v.item.Value.Value
- return
- end
- currentface = v.item.Value.Value
- Character.Head.face.Texture = v.item.Value.Value
- end)
- end
- end
- for _, v in pairs(gui.Menu2.face.color:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseButton1Down:connect(function()
- currenteyecolor = v.Name
- Character.Head.eyecolor.Color3 = BrickColor.new(currenteyecolor).Color
- end)
- end
- end
- for _, v in pairs(gui.Menu2.clothing.frame:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseButton1Down:connect(function()
- currentshirt = v.item.Value.shirt.ShirtTemplate
- currentpants = v.item.Value.pants.PantsTemplate
- Character.Shirt.ShirtTemplate = currentshirt
- Character.Pants.PantsTemplate = currentpants
- end)
- end
- end
- lastshirt = Character.Shirt.ShirtTemplate
- gui.Menu2.clothing.shirt.info.name.Changed:connect(function()
- if tonumber(gui.Menu2.clothing.shirt.info.name.Text) then
- keyinput:FireServer("getasset", "shirt", tonumber(gui.Menu2.clothing.shirt.info.name.Text))
- elseif currentshirt == "" then
- Character.Shirt.ShirtTemplate = lastshirt
- else
- Character.Shirt.ShirtTemplate = currentshirt
- end
- end)
- keyinput.OnClientEvent:connect(function(key, ken2, ken3, ken4)
- if key == "asset" then
- if ken2 == "buyclothing" then
- currentshirt = Character.Shirt.ShirtTemplate
- currentpants = Character.Pants.PantsTemplate
- end
- if ken2 == "shirt" then
- Character.Shirt.ShirtTemplate = ken3
- keyinput:FireServer("changeshirt", Character.Shirt.ShirtTemplate)
- elseif ken2 == "pant" then
- Character.Pants.PantsTemplate = ken3
- keyinput:FireServer("changepants", Character.Pants.PantsTemplate)
- end
- end
- end)
- lastpants = Character.Pants.PantsTemplate
- gui.Menu2.clothing.pants.info.name.Changed:connect(function(valz)
- if tonumber(gui.Menu2.clothing.pants.info.name.Text) then
- keyinput:FireServer("getasset", "pant", tonumber(gui.Menu2.clothing.pants.info.name.Text))
- elseif currentpants == "" then
- Character.Pants.PantsTemplate = lastpants
- else
- Character.Pants.PantsTemplate = currentpants
- end
- end)
- if Player:FindFirstChild("permclothing") then
- gui.Menu2.clothing.buy.name.Text = "Wear"
- end
- gui.Menu2.clothing.buy.MouseButton1Down:connect(function()
- if Player:FindFirstChild("permclothing") then
- keyinput:FireServer("checkperm")
- return
- end
- if tonumber(gui.Menu2.clothing.shirt.info.name.Text) then
- keyinput:FireServer("changeshirt", Character.Shirt.ShirtTemplate)
- else
- gui.Menu2.clothing.pants.info.name.Text = 0
- end
- if tonumber(gui.Menu2.clothing.shirt.info.name.Text) then
- keyinput:FireServer("changepants", Character.Pants.PantsTemplate)
- else
- gui.Menu2.clothing.shirt.info.name.Text = 0
- end
- game:GetService("MarketplaceService"):PromptProductPurchase(Player, 196622642)
- end)
- for _, v in pairs(gui.Menu2.skin:GetChildren()) do
- if v:IsA("ImageButton") then
- v.Name = BrickColor.new(v.ImageColor3).Name
- v.MouseButton1Down:connect(function()
- currentskin = v.Name
- for _, v in pairs(Character:GetChildren()) do
- if v:IsA("MeshPart") or v:IsA("Part") then
- v.BrickColor = BrickColor.new(currentskin)
- end
- end
- end)
- end
- end
- function equipmodeltobod(model)
- for _, v in pairs(model:GetChildren()) do
- if v:IsA("Part") or v:IsA("MeshPart") then
- findpart = Character:FindFirstChild(v.Name)
- if findpart and (findpart:IsA("Part") or findpart:IsA("MeshPart")) and findpart then
- local newwel = Instance.new("Weld", findpart)
- newwel.Part0 = findpart
- newwel.Part1 = v
- end
- end
- end
- end
- for _, v in pairs(gui.Menu2.hair.frame:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseButton1Down:connect(function()
- currenthair = v.item.Value.Name
- if Character:FindFirstChild("hair") then
- Character:FindFirstChild("hair"):remove()
- end
- local newhair = v.item.Value.hair:clone()
- equipmodeltobod(newhair)
- newhair.Parent = Character
- for _, v in pairs(newhair:GetChildren()) do
- if v.Name == "Hair" or v.Name == "hair" then
- v.BrickColor = BrickColor.new(currenthaircolor)
- end
- end
- end)
- end
- end
- for _, v in pairs(gui.Menu2.hair.color:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseButton1Down:connect(function()
- currenthaircolor = v.Name
- if Character:FindFirstChild("hair") then
- newhair = Character:FindFirstChild("hair")
- Character.Head.brows.Color3 = BrickColor.new(currenthaircolor).Color
- for _, v in pairs(newhair:GetChildren()) do
- if v.Name == "Hair" or v.Name == "hair" then
- v.BrickColor = BrickColor.new(currenthaircolor)
- end
- end
- end
- end)
- end
- end
- gui.terms.Visible = true
- do
- local terss = Instance.new("Sound")
- terss.Parent = script
- terss.SoundId = "rbxassetid://" .. 256887762
- terss.Looped = true
- terss:Play()
- accepttemrs = false
- canaccept = false
- canaccept = true
- gui.terms.accept.Text = "AGREE & CONTINUE"
- gui.terms.accept.MouseButton1Down:connect(function()
- if canaccept then
- else
- return
- end
- if accepttemrs then
- return
- end
- terss:Stop()
- accepttemrs = true
- sound(gui, 138088421, 3)
- blindeffect(4)
- wait(0.5)
- gui.terms.Visible = false
- end)
- repeat
- wait()
- UserInputService.MouseBehavior = Enum.MouseBehavior.Default
- until gui.terms.Visible == false
- terss:Stop()
- local customusic = Instance.new("Sound")
- customusic.Parent = script
- customusic.SoundId = "rbxassetid://" .. 278866502
- customusic.Looped = true
- customusic:Play()
- local customusic2 = Instance.new("Sound")
- customusic2.Parent = script
- customusic2.SoundId = "rbxassetid://" .. 278436188
- customusic2.Looped = true
- local customusic3 = Instance.new("Sound")
- customusic3.Parent = script
- customusic3.SoundId = "rbxassetid://" .. 891239053
- customusic3.Looped = true
- idlanim2 = Instance.new("Animation")
- idlanim2.AnimationId = "rbxassetid://" .. 1374826353
- idlanim2z = humanoid:LoadAnimation(idlanim2)
- idlanim2z:Play()
- flipdwonsz = Instance.new("Animation")
- flipdwonsz.AnimationId = "rbxassetid://" .. 1374993115
- flipdwonszxz = humanoid:LoadAnimation(flipdwonsz)
- standstill = Instance.new("Animation")
- standstill.AnimationId = "rbxassetid://" .. 1137175543
- standstillz = humanoid:LoadAnimation(standstill)
- activjus = Instance.new("Animation")
- activjus.AnimationId = "rbxassetid://" .. 1372045909
- activjusz = humanoid:LoadAnimation(activjus)
- humanoid.AutoRotate = false
- rootpart.CFrame = workspace.custocam.HumanoidRootPart.CFrame
- rootpart.Anchored = true
- wait()
- Character.Parent = workspace
- repeat
- wait()
- Character.Parent = workspace
- until Character.Parent == workspace
- customizgui = rs.cust:clone()
- customizgui.Parent = Player.PlayerGui
- customizgui.Adornee = rootpart
- customizgui.Enabled = false
- getscroll = rs.holdscroll:clone()
- newmoto = Instance.new("Motor6D")
- newmoto.Parent = getscroll
- newmoto.Part0 = Character.UpperTorso
- newmoto.Part1 = getscroll.rootpart
- newmoto.C0 = CFrame.new(0, -1.1, -0.3)
- getscroll.Parent = Character
- gui.Menu2.Visible = true
- gui.Menu2.closemenu.click.MouseButton1Down:connect(function()
- aba = {
- currentshirt,
- currentpants,
- currentface,
- currenteyecolor,
- currentmouth,
- currenthair,
- currentskin,
- currenthaircolor,
- currentbrow,
- currentscar
- }
- keyinput:FireServer("publishnewcharacrer", aba)
- gui.Menu2.clothing.Visible = false
- gui.Menu2.face.Visible = false
- gui.Menu2.hair.Visible = false
- gui.Menu2.misc.Visible = false
- gui.Menu2.misc2.Visible = false
- gui.Menu2.closetab.Visible = false
- gui.Menu2.skin.Visible = false
- customizgui.Enabled = false
- sound(rootpart, 484293505, 5)
- preivewacc:ClearAllChildren()
- activjusz:Play()
- gui.Menu2.closemenu.Visible = false
- wait(1.1)
- newsub = rs.sub:clone()
- newsub.CFrame = rootpart.CFrame
- newsub.Parent = Character
- game.Debris:AddItem(newsub, 2)
- rootpart.CFrame = workspace.custocam.HumanoidRootPart.CFrame
- sound(newsub, 189132954, 1)
- wait(0.5)
- guiscroll.Enabled = true
- local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
- local propertyGoals = {
- CFrame = workspace.custocam.Head.CFrame
- }
- local tween2 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
- tween2:Play()
- wait(0.8)
- local propertyGoals = {
- CFrame = rootpart.CFrame * CFrame.Angles(-0.7, 0, 0) * CFrame.new(0, 2, 0.2)
- }
- local tween2 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
- customusic2:Stop()
- customusic:Play()
- tween2:Play()
- getscroll.Parent = Character
- idlanim2z:Play()
- idlanimz:Stop()
- end)
- firstelement = ""
- secondelemnet = ""
- thirdelemnet = ""
- switch = 0
- for _, v in pairs(gui.Menu4.main:GetChildren()) do
- if v:IsA("ImageButton") and v:FindFirstChild("select") then
- v.MouseButton1Down:connect(function()
- if Player.tries.Value <= 0 then
- game:GetService("MarketplaceService"):PromptProductPurchase(Player, 184356789)
- sound(script, 138090596, 1)
- return
- end
- sound(script, 154020879, 1)
- if switch == 3 then
- thirdelemnet = v.Name
- v.select.Visible = true
- switch = 0
- keyinput:FireServer("switchelement", 3, thirdelemnet)
- for _, ss in pairs(gui.Menu4.main:GetChildren()) do
- if not (ss:IsA("ImageButton") and ss:FindFirstChild("select")) or ss.Name == firstelement or ss.Name == secondelemnet or ss.Name == thirdelemnet then
- else
- ss.select.Visible = false
- end
- end
- return
- end
- if switch == 2 then
- secondelemnet = v.Name
- v.select.Visible = true
- if Player:FindFirstChild("thirdelement") then
- switch = 3
- else
- switch = 0
- end
- keyinput:FireServer("switchelement", 2, secondelemnet)
- for _, ss in pairs(gui.Menu4.main:GetChildren()) do
- if not (ss:IsA("ImageButton") and ss:FindFirstChild("select")) or ss.Name == firstelement or ss.Name == secondelemnet or ss.Name == thirdelemnet then
- else
- ss.select.Visible = false
- end
- end
- return
- end
- firstelement = v.Name
- v.select.Visible = true
- keyinput:FireServer("switchelement", 1, firstelement)
- switch = 2
- for _, ss in pairs(gui.Menu4.main:GetChildren()) do
- if not (ss:IsA("ImageButton") and ss:FindFirstChild("select")) or ss.Name == firstelement or ss.Name == secondelemnet or ss.Name == thirdelemnet then
- else
- ss.select.Visible = false
- end
- end
- end)
- end
- end
- gui.Menu4.main.KG1.spin.MouseButton1Down:connect(function()
- sound(script, 154020879, 1)
- if Player.tries.Value <= 0 then
- game:GetService("MarketplaceService"):PromptProductPurchase(Player, 184356789)
- return
- end
- keyinput:FireServer("respin", 1)
- end)
- gui.Menu4.main.KG2.spin.MouseButton1Down:connect(function()
- sound(script, 154020879, 1)
- if Player.tries.Value <= 0 then
- game:GetService("MarketplaceService"):PromptProductPurchase(Player, 184356789)
- return
- end
- keyinput:FireServer("respin", 2)
- end)
- gui.Menu4.main.KG3.spin.MouseButton1Down:connect(function()
- sound(script, 154020879, 1)
- if Player.tries.Value <= 0 then
- game:GetService("MarketplaceService"):PromptProductPurchase(Player, 184356789)
- return
- end
- keyinput:FireServer("respin", 3)
- end)
- gui.Menu4.main.KG4.spin.MouseButton1Down:connect(function()
- if gui.Menu4.main.KG4.spin.name.Text == "MAX-RANK REQ" then
- warning("NEED MAX-RANK")
- game:GetService("MarketplaceService"):PromptProductPurchase(Player, 226963112)
- return
- end
- sound(script, 154020879, 1)
- if Player.tries.Value <= 0 then
- game:GetService("MarketplaceService"):PromptProductPurchase(Player, 184356789)
- return
- end
- keyinput:FireServer("respin", 4)
- end)
- gui.Menu4.closemenu.click.MouseButton1Down:connect(function()
- sound(script, 154020879, 1)
- gui.Menu4.Visible = false
- gui.Menu2.clothing.Visible = false
- gui.Menu2.face.Visible = false
- gui.Menu2.hair.Visible = false
- gui.Menu2.misc.Visible = false
- gui.Menu2.skin.Visible = false
- gui.Menu2.misc2.Visible = false
- gui.Menu2.closetab.Visible = false
- customizgui.Enabled = true
- local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
- local propertyGoals = {
- CFrame = workspace.custocam.cam2.CFrame
- }
- local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
- tween1:Play()
- end)
- gui.followmouse.access.Info.unlockrs.MouseButton1Down:connect(function()
- gui.followmouse.access.Visible = false
- game:GetService("MarketplaceService"):PromptProductPurchase(Player, currentbuy.Value.id.Value)
- end)
- gui.followmouse.access.Info.unlock.MouseButton1Down:connect(function()
- gui.followmouse.access.Visible = false
- keyinput:FireServer("buythisitem", currentbuy)
- end)
- gui.Menu2.closetab.click.MouseButton1Down:connect(function()
- gui.Menu2.clothing.Visible = false
- gui.Menu2.face.Visible = false
- gui.Menu2.hair.Visible = false
- gui.Menu2.misc.Visible = false
- gui.Menu2.skin.Visible = false
- gui.Menu2.misc2.Visible = false
- gui.Menu2.closetab.Visible = false
- preivewacc:ClearAllChildren()
- gui.Menu4.Visible = false
- customizgui.Enabled = true
- gui.followmouse.access.Visible = false
- local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
- local propertyGoals = {
- CFrame = workspace.custocam.cam2.CFrame
- }
- local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
- tween1:Play()
- end)
- menuup = 0
- menuright = 1
- tabl1 = {
- customizgui.Customize.elements,
- customizgui.Customize.cloth,
- customizgui.Customize.skin
- }
- tabl2 = {
- customizgui.Customize.hair,
- customizgui.Customize.face,
- customizgui.Customize.misc
- }
- currentmou = tabl1[1]
- function glowtext()
- for _, v in pairs(tabl1) do
- v.TextLabel.TextColor3 = BrickColor.White().Color
- end
- for _, v in pairs(tabl2) do
- v.TextLabel.TextColor3 = BrickColor.White().Color
- end
- if currentmou then
- currentmou.TextLabel.TextColor3 = BrickColor.new("Lime green").Color
- end
- end
- glowtext()
- UserInputService.InputBegan:connect(function(input, processed)
- if input.UserInputType == Enum.UserInputType.Gamepad1 then
- if input.KeyCode ~= Enum.KeyCode.ButtonB or gui.Menu2.closetab.Visible then
- elseif gui.Menu2.closemenu.Visible then
- aba = {
- currentshirt,
- currentpants,
- currentface,
- currenteyecolor,
- currentmouth,
- currenthair,
- currentskin,
- currenthaircolor,
- currentbrow,
- currentscar
- }
- keyinput:FireServer("publishnewcharacrer", aba)
- gui.Menu2.clothing.Visible = false
- gui.Menu2.face.Visible = false
- gui.Menu2.hair.Visible = false
- gui.Menu2.misc.Visible = false
- gui.Menu2.misc2.Visible = false
- gui.Menu2.closetab.Visible = false
- gui.Menu2.skin.Visible = false
- customizgui.Enabled = false
- sound(rootpart, 484293505, 5)
- activjusz:Play()
- gui.Menu2.closemenu.Visible = false
- wait(1.1)
- newsub = rs.sub:clone()
- newsub.CFrame = rootpart.CFrame
- newsub.Parent = Character
- game.Debris:AddItem(newsub, 2)
- rootpart.CFrame = workspace.custocam.HumanoidRootPart.CFrame
- sound(newsub, 189132954, 1)
- wait(0.5)
- guiscroll.Enabled = true
- local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
- local propertyGoals = {
- CFrame = workspace.custocam.Head.CFrame
- }
- local tween2 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
- tween2:Play()
- wait(0.8)
- local propertyGoals = {
- CFrame = rootpart.CFrame * CFrame.Angles(-0.7, 0, 0) * CFrame.new(0, 2, 0.2)
- }
- local tween2 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
- customusic2:Stop()
- customusic:Play()
- tween2:Play()
- getscroll.Parent = Character
- idlanim2z:Play()
- idlanimz:Stop()
- end
- if gui.Menu2.closemenu.Visible then
- else
- return
- end
- if input.KeyCode == Enum.KeyCode.DPadUp then
- if customizgui.Enabled == false then
- return
- end
- menuup = menuup - 1
- if menuup > 3 then
- menuup = 1
- end
- if 1 > menuup then
- menuup = 3
- end
- if menuright == 1 then
- currentmou = tabl1[menuup]
- else
- currentmou = tabl2[menuup]
- end
- glowtext()
- end
- if input.KeyCode == Enum.KeyCode.DPadDown then
- if customizgui.Enabled == false then
- return
- end
- menuup = menuup + 1
- if menuup > 3 then
- menuup = 1
- end
- if 1 > menuup then
- menuup = 3
- end
- if menuright == 1 then
- currentmou = tabl1[menuup]
- else
- currentmou = tabl2[menuup]
- end
- glowtext()
- end
- if input.KeyCode == Enum.KeyCode.DPadLeft then
- if customizgui.Enabled == false then
- return
- end
- menuright = 1
- if menuright == 1 then
- currentmou = tabl1[menuup]
- else
- currentmou = tabl2[menuup]
- end
- glowtext()
- end
- if input.KeyCode == Enum.KeyCode.DPadRight then
- if customizgui.Enabled == false then
- return
- end
- menuright = 2
- if menuright == 1 then
- currentmou = tabl1[menuup]
- else
- currentmou = tabl2[menuup]
- end
- glowtext()
- end
- if input.KeyCode == Enum.KeyCode.ButtonB and gui.Menu2.closetab.Visible then
- gui.Menu2.clothing.Visible = false
- gui.Menu2.face.Visible = false
- gui.Menu2.hair.Visible = false
- gui.Menu2.misc.Visible = false
- gui.Menu2.skin.Visible = false
- gui.Menu2.misc2.Visible = false
- gui.Menu2.closetab.Visible = false
- gui.Menu4.Visible = false
- customizgui.Enabled = true
- local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
- local propertyGoals = {
- CFrame = workspace.custocam.cam2.CFrame
- }
- local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
- tween1:Play()
- end
- if input.KeyCode == Enum.KeyCode.ButtonA then
- if customizgui.Enabled == false then
- return
- end
- if currentmou == customizgui.Customize.elements then
- customizgui.Enabled = false
- gui.Menu4.Visible = true
- gui.Menu2.closetab.Visible = true
- local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
- local propertyGoals = {
- CFrame = rootpart.CFrame * CFrame.new(0, 0, -8) * CFrame.Angles(0, math.pi, 0)
- }
- local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
- tween1:Play()
- end
- if currentmou == customizgui.Customize.cloth then
- customizgui.Enabled = false
- gui.Menu2.clothing.Visible = true
- gui.Menu2.closetab.Visible = true
- local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
- local propertyGoals = {
- CFrame = rootpart.CFrame * CFrame.new(0, 0, -8) * CFrame.Angles(0, math.pi, 0)
- }
- local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
- tween1:Play()
- end
- if currentmou == customizgui.Customize.skin then
- customizgui.Enabled = false
- gui.Menu2.skin.Visible = true
- gui.Menu2.closetab.Visible = true
- local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
- local propertyGoals = {
- CFrame = rootpart.CFrame * CFrame.new(0, 0, -8) * CFrame.Angles(0, math.pi, 0)
- }
- local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
- tween1:Play()
- end
- if currentmou == customizgui.Customize.face then
- customizgui.Enabled = false
- gui.Menu2.face.Visible = true
- gui.Menu2.closetab.Visible = true
- local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
- local propertyGoals = {
- CFrame = rootpart.CFrame * CFrame.new(0, 2, -4) * CFrame.Angles(0, math.pi, 0)
- }
- local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
- tween1:Play()
- end
- if currentmou == customizgui.Customize.hair then
- customizgui.Enabled = false
- gui.Menu2.hair.Visible = true
- gui.Menu2.closetab.Visible = true
- local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
- local propertyGoals = {
- CFrame = rootpart.CFrame * CFrame.new(0, 2, -4) * CFrame.Angles(0, math.pi, 0)
- }
- local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
- tween1:Play()
- end
- if currentmou == customizgui.Customize.misc then
- customizgui.Enabled = false
- gui.Menu2.misc.Visible = true
- gui.Menu2.misc2.Visible = true
- gui.Menu2.closetab.Visible = true
- local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
- local propertyGoals = {
- CFrame = rootpart.CFrame * CFrame.new(0, 0, -8) * CFrame.Angles(0, math.pi, 0)
- }
- local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
- tween1:Play()
- end
- end
- end
- end)
- customizgui.Customize.elements.MouseButton1Down:connect(function()
- customizgui.Enabled = false
- gui.Menu4.Visible = true
- gui.Menu2.closetab.Visible = true
- local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
- local propertyGoals = {
- CFrame = rootpart.CFrame * CFrame.new(0, 0, -8) * CFrame.Angles(0, math.pi, 0)
- }
- local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
- tween1:Play()
- end)
- customizgui.Customize.cloth.MouseButton1Down:connect(function()
- customizgui.Enabled = false
- gui.Menu2.clothing.Visible = true
- gui.Menu2.closetab.Visible = true
- local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
- local propertyGoals = {
- CFrame = rootpart.CFrame * CFrame.new(0, 0, -8) * CFrame.Angles(0, math.pi, 0)
- }
- local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
- tween1:Play()
- end)
- customizgui.Customize.skin.MouseButton1Down:connect(function()
- customizgui.Enabled = false
- gui.Menu2.skin.Visible = true
- gui.Menu2.closetab.Visible = true
- local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
- local propertyGoals = {
- CFrame = rootpart.CFrame * CFrame.new(0, 0, -8) * CFrame.Angles(0, math.pi, 0)
- }
- local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
- tween1:Play()
- end)
- customizgui.Customize.face.MouseButton1Down:connect(function()
- customizgui.Enabled = false
- gui.Menu2.face.Visible = true
- gui.Menu2.closetab.Visible = true
- local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
- local propertyGoals = {
- CFrame = rootpart.CFrame * CFrame.new(0, 2, -4) * CFrame.Angles(0, math.pi, 0)
- }
- local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
- tween1:Play()
- end)
- customizgui.Customize.hair.MouseButton1Down:connect(function()
- customizgui.Enabled = false
- gui.Menu2.hair.Visible = true
- gui.Menu2.closetab.Visible = true
- local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
- local propertyGoals = {
- CFrame = rootpart.CFrame * CFrame.new(0, 2, -4) * CFrame.Angles(0, math.pi, 0)
- }
- local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
- tween1:Play()
- end)
- customizgui.Customize.misc.MouseButton1Down:connect(function()
- customizgui.Enabled = false
- gui.Menu2.misc.Visible = true
- gui.Menu2.misc2.Visible = true
- gui.Menu2.closetab.Visible = true
- local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
- local propertyGoals = {
- CFrame = rootpart.CFrame * CFrame.new(0, 0, -8) * CFrame.Angles(0, math.pi, 0)
- }
- local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
- tween1:Play()
- end)
- guiscroll = getscroll.SurfaceGui:clone()
- guiscroll.Parent = Player.PlayerGui
- guiscroll.Adornee = getscroll.gui
- if game.PlaceId == 1447439317 then
- elseif Player:FindFirstChild("access") then
- guiscroll.main.play.TextLabel.Visible = false
- guiscroll.main.play.ImageColor3 = guiscroll.main.customize.ImageColor3
- end
- guiscroll.main.story.click.MouseButton1Down:connect(function()
- keyinput:FireServer("story")
- end)
- newrootpartpos = nil
- guiscroll.main.customize.click.MouseButton1Down:connect(function()
- customusic2:Play()
- customusic:Stop()
- guiscroll.Enabled = false
- local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
- local propertyGoals = {
- CFrame = workspace.custocam.Head.CFrame
- }
- local tween2 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
- tween2:Play()
- wait(0.5)
- local propertyGoals = {
- CFrame = workspace.custocam.cam2.CFrame
- }
- local tween2 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
- tween2:Play()
- wait(1)
- local propertyGoals = {
- CFrame = workspace.custocam.cfr2.CFrame
- }
- local tween2 = TweenService:Create(rootpart, tweenInfo, propertyGoals)
- tween2:Play()
- wait(0.7)
- getscroll.Parent = script
- idlanim2z:Stop()
- flipdwonszxz:Play()
- wait(0.5)
- standstillz:play()
- flipdwonszxz:Stop()
- idlanimz:Play()
- customizgui.Enabled = true
- gui.Menu2.closemenu.Visible = true
- spinzz = 0
- delay(0.3, function()
- newrootpartpos = rootpart.CFrame
- end)
- end)
- guiscroll.main.play.click.MouseButton1Down:connect(function()
- getcusto.Value = false
- keyinput:FireServer("respawn")
- end)
- local tweenInfo333 = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
- local propertyGoals333 = {
- CFrame = workspace.custocam.HumanoidRootPart.CFrame * CFrame.Angles(-0.7, 0, 0) * CFrame.new(0, 2, 0.2)
- }
- local tween3333 = TweenService:Create(workspace.Camera, tweenInfo333, propertyGoals333)
- workspace.Camera.CameraType = "Scriptable"
- workspace.Camera.CFrame = workspace.custocam.Head.CFrame
- wait(5)
- blindeffect(4)
- wait(0.5)
- finish = rootpart.CFrame * CFrame.Angles(-0.7, 0, 0) * CFrame.new(0, 2, 0.2)
- start = workspace.Camera.CFrame
- workspace.Camera.CFrame = finish
- idlanimz:Stop()
- turnleft = false
- turnright = false
- mouse.KeyDown:connect(function(key)
- if key == "a" then
- turnleft = true
- end
- if key == "d" then
- turnright = true
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key == "a" then
- turnleft = false
- end
- if key == "d" then
- turnright = false
- end
- end)
- spinzz = 0
- keyinput:FireServer("updatetext")
- while incusto do
- renderstepped:wait()
- rootpart.Anchored = true
- if gui.Menu2.closemenu.Visible then
- if turnleft then
- spinzz = spinzz - 0.05
- end
- if turnright then
- spinzz = spinzz + 0.05
- end
- if newrootpartpos then
- rootpart.CFrame = newrootpartpos * CFrame.Angles(0, spinzz, 0)
- end
- end
- end
- end
- end
- Player.PlayerScripts.CameraScript.Disabled = false
- gui:WaitForChild("tutorial")
- if Player:FindFirstChild("dontshowtut") then
- else
- azb = Instance.new("StringValue", Player)
- azb.Name = "dontshowtut"
- gui.tutorial.Visible = true
- end
- delay(0.5, function()
- gui.tutorial.closetab.click.MouseButton1Down:connect(function()
- gui.tutorial.Visible = false
- end)
- gui.Menu3.controls.MouseButton1Down:connect(function()
- gui.tutorial.Visible = true
- end)
- end)
- mouse.KeyDown:connect(function(kezz)
- kezz = string.lower(kezz)
- if kezz == "j" then
- if gui.tutorial.Visible then
- gui.tutorial.Visible = false
- return
- end
- gui.tutorial.Visible = true
- end
- end)
- stickgyro = false
- gyrfly = Instance.new("BodyGyro")
- gyrfly.Parent = rootpart
- gyrfly.D = 1000
- gyrfly.P = 600
- b5 = Instance.new("BodyVelocity")
- b5.Parent = rootpart
- b5.maxForce = Vector3.new(0, 0, 0)
- b5.velocity = gyrfly.cframe.lookVector * 0
- gyrfly.P = 2500
- bp = Instance.new("BodyPosition")
- bp.Parent = rootpart
- bp.maxForce = Vector3.new(0, 0, 0)
- bp.position = rootpart.CFrame.p
- bp.P = 60000
- hascontroller = false
- UserInputService.GamepadConnected:connect(function(gamepad)
- hascontroller = true
- end)
- UserInputService.GamepadDisconnected:connect(function(gamepad)
- hascontroller = false
- end)
- if game:GetService("UserInputService").GamepadEnabled then
- hascontroller = true
- end
- function mousehit()
- if hascontroller then
- cfr = mouse.hit
- else
- cfr = workspace.Camera.CFrame * CFrame.new(0, 0, -400)
- end
- return cfr
- end
- theme = Instance.new("Sound")
- theme.Parent = script
- theme.SoundId = "rbxassetid://138141118"
- theme.Looped = true
- theme.Volume = 0.1
- theme:Play()
- punczzhL = Instance.new("Sound")
- punczzhL.Parent = script
- punczzhL.SoundId = "rbxassetid://1112042117"
- punczzhL.Volume = 0.3
- inmainpower = false
- w = 0
- a = 0
- s = 0
- d = 0
- local MouseKeyboard = function(InputKey)
- if InputKey.UserInputType == Enum.UserInputType.Keyboard then
- keyinput:FireServer(InputKey.KeyCode.Name)
- end
- end
- local MouseKeyboard2 = function(InputKey)
- if InputKey.UserInputType == Enum.UserInputType.Keyboard then
- keyinput:FireServer(InputKey.KeyCode.Name .. "end")
- end
- end
- UserInputService.InputBegan:connect(MouseKeyboard)
- UserInputService.InputEnded:connect(MouseKeyboard2)
- origcombattab = {
- 1066976150,
- 1447706391,
- 1447677652,
- 1067018747,
- 1447734654,
- 1066993762,
- 1447687045,
- 1447698846,
- 1067005694
- }
- origstrongcombattab = {
- 1447946585,
- 1447698846,
- 1447897548
- }
- origcombattab2 = origcombattab
- strongcombattab = origstrongcombattab
- combatanim = Instance.new("Animation")
- combatanim.AnimationId = "rbxassetid://"
- combatanimz = humanoid:LoadAnimation(combatanim)
- asidestep = Instance.new("Animation")
- asidestep.AnimationId = "rbxassetid://" .. 1372515515
- asidestepz = humanoid:LoadAnimation(asidestep)
- dsidestep = Instance.new("Animation")
- dsidestep.AnimationId = "rbxassetid://" .. 1372516317
- dsidestepz = humanoid:LoadAnimation(dsidestep)
- wstep = Instance.new("Animation")
- wstep.AnimationId = "rbxassetid://" .. 1372557331
- wstepz = humanoid:LoadAnimation(wstep)
- landstep = Instance.new("Animation")
- landstep.AnimationId = "rbxassetid://" .. 1372577992
- landstepz = humanoid:LoadAnimation(landstep)
- ssidestep = Instance.new("Animation")
- ssidestep.AnimationId = "rbxassetid://" .. 1590228803
- ssidestepz = humanoid:LoadAnimation(ssidestep)
- function closestplr4(rp2)
- addlength = 0
- sword = Character:FindFirstChild("sword")
- if sword then
- addedlength = sword:GetModelSize()
- addlength = addedlength.Y / 2
- end
- local closestDist2 = 10 + addlength
- print(closestDist2)
- local closestPlayer2
- for index, playerz in ipairs(workspace:GetChildren()) do
- if playerz.Name == rp2.Name then
- elseif not (playerz:IsA("Model") and playerz:FindFirstChild("HumanoidRootPart") and playerz:FindFirstChild("Humanoid") and playerz:FindFirstChild("combat") and closestDist2 > (playerz.HumanoidRootPart.Position - rp2.HumanoidRootPart.Position).magnitude and math.acos((playerz.HumanoidRootPart.CFrame.p - rp2.HumanoidRootPart.Position).unit:Dot(rp2.HumanoidRootPart.CFrame.lookVector)) <= math.pi / 3) or playerz.combat.combo.Value >= 1 then
- else
- closestPlayer2 = playerz.HumanoidRootPart
- closestDist2 = (playerz.HumanoidRootPart.Position - rp2.HumanoidRootPart.Position).magnitude
- end
- end
- doubltal2 = {closestDist2, closestPlayer2}
- return doubltal2
- end
- Character:WaitForChild("combat")
- wait(1)
- disableplr = false
- hittabl = {
- 1067048642,
- 1067051864,
- 1067054607,
- 1067058857
- }
- hiteffect = Instance.new("Animation")
- hiteffect.AnimationId = "rbxassetid://"
- hiteffectz = humanoid:LoadAnimation(hiteffect)
- dedeffec = Instance.new("Animation")
- dedeffec.AnimationId = "rbxassetid://1170554956"
- dedeffecz = humanoid:LoadAnimation(dedeffec)
- oldfakehealth = combatfolder.fakehealth.Value
- slowcharacterdown = false
- changcharc = false
- combatfolder.fakehealth.Changed:connect(function(aaaa)
- if changcharc then
- return
- end
- if combatfolder.fakehealth.Value < oldfakehealth then
- changcharc = true
- slowcharacterdown = true
- wait(0.8)
- slowcharacterdown = false
- changcharc = false
- end
- oldfakehealth = combatfolder.fakehealth.Value
- end)
- combatfolder.down.Changed:connect(function(aa)
- end)
- puchback = false
- combatfolder.addhit.Changed:connect(function(aaa)
- if aaa == 0 then
- else
- getnum = math.random(1, #hittabl)
- hiteffect.AnimationId = "rbxassetid://" .. hittabl[getnum]
- hiteffectz = humanoid:LoadAnimation(hiteffect)
- hiteffectz:Play()
- if combatfolder.getpart.Value then
- if inblock then
- keyinput:FireServer("bodyflicker")
- else
- cfr = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), combatfolder.getpart.Value.Position * Vector3.new(1, 0, 1)) * CFrame.new(0, 0, 2) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
- end
- end
- rootpart.Velocity = cfr.lookVector * -90
- end
- end)
- combatfolder.hit.Changed:connect(function(aaa)
- if aaa then
- disableplr = true
- humanoid.AutoRotate = false
- else
- humanoid.AutoRotate = true
- disableplr = false
- gui.counter.Visible = false
- keyinput:FireServer("counter", 2)
- end
- end)
- combatfolder.counter.Changed:connect(function(aa)
- if aa then
- counteranim:Play()
- aaa = closestplr4(Character)
- if aaa[2] then
- keyinput:FireServer("combat", aaa[2].Parent)
- end
- end
- end)
- disabled = false
- combatfolder.combo.Changed:connect(function(aaa)
- if aaa == 0 then
- disabled = false
- disableplr = false
- bp.position = rootpart.CFrame.p
- bp.maxForce = Vector3.new(0, 0, 0)
- humanoid.AutoRotate = true
- else
- disabled = true
- bp.maxForce = Vector3.new(1 / 0, 1 / 0, 1 / 0)
- bp.position = rootpart.CFrame.p
- disableplr = true
- end
- end)
- inthefunction = false
- pointo = script.pointto:clone()
- pointo.Parent = Character
- Player.target.Changed:connect(function()
- if Player.target.Value then
- inthefunction = true
- pointo.Parent = rootpart
- repeat
- renderstepped:wait()
- if Player.target.Value then
- if Player.target.Value.Parent then
- dsdsd = Player.target.Value:FindFirstChild("HumanoidRootPart")
- if dsdsd then
- maggg = (rootpart.CFrame.p - dsdsd.CFrame.p).magnitude
- pointo.Parent = rootpart
- castRay = Ray.new(Character.HumanoidRootPart.Position, Vector3.new(0, -999, 0))
- hitff, at = game.Workspace:FindPartOnRay(castRay, Character)
- if hitff then
- pointo.CFrame = CFrame.new(Character.HumanoidRootPart.Position * Vector3.new(1, 0, 1), dsdsd.CFrame.p * Vector3.new(1, 0, 1)) * CFrame.Angles(0, math.pi, 0) * CFrame.new(0, 0, 1) + Vector3.new(0, at.Y, 0)
- else
- pointo.CFrame = CFrame.new(Character.HumanoidRootPart.Position * Vector3.new(1, 0, 1), dsdsd.CFrame.p * Vector3.new(1, 0, 1)) * CFrame.Angles(0, math.pi, 0) * CFrame.new(0, 0, 1) + Vector3.new(0, rootpart.Y - 2.1, 0)
- end
- if maggg >= 250 then
- inthefunction = false
- end
- end
- else
- inthefunction = false
- end
- else
- inthefunction = false
- end
- until inthefunction == false
- pointo.Parent = script
- keyinput:FireServer("losetarget")
- end
- end)
- doanim = Instance.new("Animation")
- doanim.AnimationId = "rbxassetid://"
- doanimz = humanoid:LoadAnimation(doanim)
- combatfolder.cconfig.pos.Changed:connect(function(aaa)
- bp.position = combatfolder.cconfig.pos.Value
- end)
- combatfolder.cconfig.anim.Changed:connect(function(aaa)
- doanimz:Stop()
- doanim.AnimationId = "rbxassetid://" .. aaa
- doanimz = humanoid:LoadAnimation(doanim)
- doanimz:Play()
- end)
- slide = Instance.new("Animation")
- slide.AnimationId = "rbxassetid://1178365931"
- slidez = humanoid:LoadAnimation(slide)
- sliding = false
- punch = 0
- enabled = false
- modecam = false
- anewcombo = ""
- slowdownturn = false
- docombo = false
- slowdowncharacter = false
- pushcharc = false
- pushcharc2 = false
- currentselect = 0
- function locategui()
- for _, v in pairs(gui.Menu3:GetChildren()) do
- if v:IsA("ImageButton") and v:FindFirstChild("num") then
- v.num.TextColor3 = BrickColor.White().Color
- if v.Name == "key" .. currentselect then
- v.num.TextColor3 = BrickColor.new("Lime green").Color
- end
- end
- end
- bbv = gui.Menu3:FindFirstChild("key" .. currentselect)
- if bbv then
- findguiz = bbv:FindFirstChild("cooldown")
- if findguiz and findguiz.Visible then
- currentselect = 0
- locategui()
- end
- end
- end
- charge = false
- charge2 = false
- grapple = false
- grap = nil
- fakepart = nil
- launchplr = false
- grapplegun = nil
- function equipmodeltobod(model)
- for _, v in pairs(model:GetChildren()) do
- if v:IsA("Part") or v:IsA("MeshPart") then
- findpart = Character:FindFirstChild(v.Name)
- if findpart and (findpart:IsA("Part") or findpart:IsA("MeshPart")) and findpart then
- local newwel = Instance.new("Weld", findpart)
- newwel.Part0 = findpart
- newwel.Part1 = v
- end
- end
- end
- end
- getofgrapple = false
- currentselected = 0
- function updateanim(speed)
- if canautorotate then
- walkanimanim:Stop()
- runanimanim:Stop()
- flymovanim:Stop()
- flymov2anim:Stop()
- chakrarunanim:Stop()
- return
- end
- if wallclimb then
- if w == 1 or s == 1 then
- if chakrarun then
- if chakrarunanim.IsPlaying then
- else
- chakrarunanim:Play()
- end
- walkanimanim:Stop()
- flymovanim:Stop()
- flymov2anim:Stop()
- runanimanim:Stop()
- else
- if runanimanim.IsPlaying then
- else
- runanimanim:Play()
- end
- walkanimanim:Stop()
- flymovanim:Stop()
- flymov2anim:Stop()
- chakrarunanim:Stop()
- end
- return
- end
- walkanimanim:Stop()
- runanimanim:Stop()
- flymovanim:Stop()
- flymov2anim:Stop()
- chakrarunanim:Stop()
- return
- end
- if speed == nil then
- speed = (rootpart.Velocity - Vector3.new(0, rootpart.Velocity.y, 0)).magnitude
- end
- if inmainpower then
- if goingup then
- goinupzanim:Play()
- walkanimanim:Stop()
- runanimanim:Stop()
- flymovanim:Stop()
- flymov2anim:Stop()
- return
- else
- goinupzanim:Stop()
- end
- if goingdown then
- goindzanim:Play()
- walkanimanim:Stop()
- runanimanim:Stop()
- flymovanim:Stop()
- flymov2anim:Stop()
- return
- else
- goindzanim:Stop()
- end
- end
- if speed > 10 then
- landanims:Stop()
- if inmainpower then
- if run then
- flymovanim:Stop()
- if flymov2anim.IsPlaying then
- else
- flymov2anim:Play()
- end
- else
- flymov2anim:Stop()
- if flymovanim.IsPlaying then
- else
- flymovanim:Play()
- end
- end
- elseif chakrarun then
- walkanimanim:Stop()
- runanimanim:Stop()
- if chakrarunanim.IsPlaying then
- else
- chakrarunanim:Play()
- end
- elseif run then
- walkanimanim:Stop()
- chakrarunanim:Stop()
- if runanimanim.IsPlaying then
- else
- runanimanim:Play()
- end
- else
- chakrarunanim:Stop()
- if walkanimanim.IsPlaying then
- else
- walkanimanim:Play()
- end
- runanimanim:Stop()
- end
- else
- walkanimanim:Stop()
- runanimanim:Stop()
- flymovanim:Stop()
- flymov2anim:Stop()
- chakrarunanim:Stop()
- end
- end
- inblock = false
- blockidl = Instance.new("Animation")
- blockidl.AnimationId = "rbxassetid://1389359506"
- blockidlz = humanoid:LoadAnimation(blockidl)
- forestgamemode = workspace:FindFirstChild("forest")
- fmode = false
- if forestgamemode then
- fmode = true
- Player.Chatted:connect(function(msg)
- if Player.Neutral then
- elseif string.lower(string.sub(msg, 1, 7)) == "invite " then
- eee = game.Players:GetChildren()
- addded = 0
- for _, v in pairs(eee) do
- if v.Neutral then
- elseif v.TeamColor == Player.TeamColor then
- addded = addded + 1
- end
- end
- if addded >= 4 then
- warning("SQUAD IS FULL")
- return
- end
- for i = 1, #eee do
- if string.find(string.lower(eee[i].Name), string.sub(string.lower(string.sub(msg, 8, 99999)), 0)) == 1 then
- print(eee[i].Name)
- invit = eee[i]
- if invit.invite.inv.Value then
- warning("Can't Invite player.")
- return
- end
- if invit.Neutral then
- else
- warning("Player is already in squad.")
- return
- end
- if invit == Player then
- break
- end
- warning("Invited " .. invit.Name .. " to Squad")
- effectz:FireServer("invite", invit.Character)
- break
- end
- end
- end
- end)
- end
- delay(1, function()
- menu = gui:WaitForChild("menu")
- gui:WaitForChild("followmouse")
- wait(0.6)
- if fmode then
- do
- local teams = game.Teams
- choosen = false
- Player.invite.inv.Changed:connect(function(aa)
- if aa then
- gui.invite.Visible = true
- gui.invite.info.Text = Player.invite.plr.Value.Name .. " invited you to their Organization"
- else
- gui.invite.Visible = false
- end
- end)
- gui.invite.no.MouseButton1Down:connect(function()
- gui.invite.Visible = false
- effectz:FireServer("decline")
- end)
- gui.invite.yes.MouseButton1Down:connect(function()
- gui.invite.Visible = false
- effectz:FireServer("accept")
- end)
- gui.Menu3.logo.Visible = false
- gui.Menu3.clickparty.Visible = true
- keyinput.OnClientEvent:connect(function(key, a, b, c, d, e, f, g)
- if key == "decal" then
- gui.club.logopre.chang.Image = a
- end
- if key == "nam" then
- gui.club.name.info.Text = a
- end
- end)
- gui.club.confirm.MouseButton1Down:connect(function()
- if currentcolor == "" then
- warning("Please Complete Information!")
- return
- end
- for _, s in pairs(teams:GetChildren()) do
- if s:IsA("Team") and s.TeamColor.Name == currentcolor then
- currentcolor = ""
- warning("Team Color Already In Use!")
- gui.club.none.ImageColor3 = BrickColor.White().Color
- return
- end
- end
- if gui.club.name.info.Text == "Enter Club Name" then
- gui.club.name.info.Text = Player.Name .. "'s Club"
- end
- gui.club.Visible = false
- effectz:FireServer("createclub", gui.club.name.info.Text, currentcolor, gui.club.logopre.chang.Image)
- choosen = true
- end)
- currentcolor = ""
- for _, v in pairs(gui.club.color:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseButton1Down:connect(function()
- for _, s in pairs(teams:GetChildren()) do
- if s:IsA("Team") and s.TeamColor.Name == v.Name then
- if Player.currentteam.Value then
- if Player.currentteam.Value.TeamColor.Name == v.Name then
- currentcolor = v.Name
- gui.club.none.ImageColor3 = v.BackgroundColor3
- return
- else
- warning("Team Color Already In Use!")
- return
- end
- end
- currentcolor = ""
- warning("Team Color Already In Use!")
- gui.club.none.ImageColor3 = BrickColor.White().Color
- return
- end
- end
- currentcolor = v.Name
- gui.club.none.ImageColor3 = v.BackgroundColor3
- end)
- end
- end
- gui.club.name.info.Changed:connect(function()
- end)
- gui.club.logo.info.Changed:connect(function()
- if tonumber(gui.club.logo.info.Text) then
- keyinput:FireServer("decal", gui.club.logo.info.Text)
- end
- end)
- gui.Menu3.clickparty.MouseButton1Down:connect(function()
- if gui.club.Visible then
- gui.club.Visible = false
- return
- end
- gui.club.Visible = true
- end)
- gui.club.exit.click.MouseButton1Down:connect(function()
- gui.club.Visible = false
- end)
- mouse.KeyDown:connect(function(key)
- key = string.lower(key)
- if key == "k" then
- if gui.club.Visible then
- gui.club.Visible = false
- return
- end
- gui.club.Visible = true
- end
- end)
- end
- end
- menu.Changed:connect(function()
- if menu.Visible == false then
- gui.followmouse.Equip1.Visible = false
- gui.followmouse.Equip2.Visible = false
- gui.followmouse.Purchase.Visible = false
- gui.followmouse.kg.Visible = false
- wait()
- workspace.Camera.CFrame = Character.Head.CFrame * CFrame.new(0, 0, 15)
- end
- end)
- currentjutsu = ""
- currentwep = ""
- currentunlock = ""
- gui.menu.closetab.click.MouseButton1Down:connect(function()
- if inmenu then
- inmenu = false
- gui.menu.Visible = false
- keyinput:FireServer("mouselock", true)
- end
- end)
- gui.followmouse.Purchase.Info.unlock.MouseButton1Down:connect(function()
- keyinput:FireServer("unlockpower", currentunlock)
- sound(script, 154020823, 1)
- gui.followmouse.Equip1.Visible = false
- gui.followmouse.Equip2.Visible = false
- gui.followmouse.Purchase.Visible = false
- gui.followmouse.kg.Visible = false
- end)
- gui.followmouse.Purchase.Info.mons.MouseButton1Down:connect(function()
- keyinput:FireServer("buysub", changesub)
- sound(script, 154020823, 1)
- gui.followmouse.Equip1.Visible = false
- gui.followmouse.Equip2.Visible = false
- gui.followmouse.Purchase.Visible = false
- gui.followmouse.kg.Visible = false
- end)
- gui.followmouse.Purchase.Info.rs.MouseButton1Down:connect(function()
- sound(script, 154020823, 1)
- gui.followmouse.Equip1.Visible = false
- gui.followmouse.Equip2.Visible = false
- gui.followmouse.Purchase.Visible = false
- gui.followmouse.kg.Visible = false
- game:GetService("MarketplaceService"):PromptProductPurchase(Player, 235174326)
- end)
- for _, v in pairs(gui.followmouse.Equip2:GetChildren()) do
- if v:IsA("TextButton") then
- v.MouseButton1Down:connect(function()
- gui.followmouse.Equip1.Visible = false
- keyinput:FireServer("equipwep", v.Name, currentwep)
- end)
- end
- end
- currentkgequip = ""
- for _, v in pairs(gui.followmouse.Equip1:GetChildren()) do
- if v:IsA("TextButton") then
- v.MouseButton1Down:connect(function()
- gui.followmouse.Equip1.Visible = false
- if currentjutsu == "kg" then
- keyinput:FireServer("equippowerz", "kg", currentkgequip, v.Name)
- else
- keyinput:FireServer("equippowerz", v.Name, currentjutsu)
- end
- end)
- end
- end
- for _, v in pairs(menu.Tai:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseButton1Down:connect(function()
- sound(script, 154020879, 1)
- gui.followmouse.Equip1.Visible = false
- gui.followmouse.Equip2.Visible = false
- gui.followmouse.Purchase.Visible = false
- gui.followmouse.kg.Visible = false
- if v.lock.Visible and v.lock.Image == "rbxassetid://1519333418" then
- desc = v:FindFirstChild("desc")
- if desc then
- gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
- gui.followmouse.Equip1.Visible = false
- gui.followmouse.Equip2.Visible = false
- gui.followmouse.Purchase.Visible = true
- gui.followmouse.kg.Visible = false
- gui.followmouse.Purchase.Info.Stat.Text = "Taijutsu: " .. desc.stat.Value
- gui.followmouse.Purchase.Info.level.Text = "Level: " .. desc.cool.Value
- gui.followmouse.Purchase.Info.money.Text = "Money: " .. desc.money.Value
- gui.followmouse.Purchase.Info.name.Text = desc.nam.Value
- gui.followmouse.Purchase.Info.type.Text = "Type: " .. desc.typ.Value
- gui.followmouse.Purchase.Info.img.Image = v.Image
- currentunlock = v
- end
- end
- end)
- end
- end
- gui.followmouse.Equip1.Changed:connect(function()
- gui.followmouse.Equip1.Info.Visible = true
- if gui.followmouse.Equip1.Visible == false then
- gui.followmouse.Equip1.wep1.Visible = false
- gui.followmouse.Equip1.wep2.Visible = false
- gui.followmouse.Equip1.wep3.Visible = false
- gui.followmouse.Equip1.Info.Position = UDim2.new(-0.5, 0, 1.2, 0)
- end
- end)
- for _, v in pairs(menu.Nin:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseButton1Down:connect(function()
- sound(script, 154020879, 1)
- if v.lock.Visible then
- desc = v:FindFirstChild("desc")
- if desc then
- gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
- gui.followmouse.Equip1.Visible = false
- gui.followmouse.Equip2.Visible = false
- gui.followmouse.Purchase.Visible = true
- gui.followmouse.kg.Visible = false
- gui.followmouse.Purchase.Info.Stat.Text = "Ninjustu: " .. desc.stat.Value
- gui.followmouse.Purchase.Info.level.Text = "Level: " .. desc.cool.Value
- gui.followmouse.Purchase.Info.money.Text = "Money: " .. desc.money.Value
- gui.followmouse.Purchase.Info.name.Text = desc.nam.Value
- gui.followmouse.Purchase.Info.type.Text = "Type: " .. desc.typ.Value
- gui.followmouse.Purchase.Info.img.Image = v.Image
- currentunlock = v
- end
- return
- end
- desc = v:FindFirstChild("desc")
- gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
- gui.followmouse.Equip1.Visible = true
- gui.followmouse.Equip2.Visible = false
- gui.followmouse.Purchase.Visible = false
- gui.followmouse.kg.Visible = false
- if v:FindFirstChild("noequipwep") then
- gui.followmouse.Equip1.wep1.Visible = false
- gui.followmouse.Equip1.wep2.Visible = false
- gui.followmouse.Equip1.wep3.Visible = false
- gui.followmouse.Equip1.Info.Position = UDim2.new(-0.5, 0, 1.2, 0)
- else
- gui.followmouse.Equip1.wep1.Visible = true
- gui.followmouse.Equip1.wep2.Visible = true
- gui.followmouse.Equip1.wep3.Visible = true
- gui.followmouse.Equip1.Info.Position = UDim2.new(-0.5, 0, 1.8, 0)
- end
- gui.followmouse.Equip1.Info.cool.Text = "UNLOCKED"
- gui.followmouse.Equip1.Info.name.Text = desc.nam.Value
- gui.followmouse.Equip1.Info.type.Text = "Type: " .. desc.typ.Value
- currentjutsu = v.Name
- end)
- end
- end
- changesub = nil
- gui.followmouse.Purchase.Info.unlock.Changed:connect(function()
- if gui.followmouse.Purchase.Visible == false then
- gui.followmouse.Purchase.Info.unlock.Visible = true
- gui.followmouse.Purchase.Info.mons.Visible = false
- gui.followmouse.Purchase.Info.rs.Visible = false
- gui.followmouse.Purchase.Info.monz.Text = ""
- end
- end)
- for _, v in pairs(menu.Sub:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseButton1Down:connect(function()
- sound(script, 154020879, 1)
- if v.lock.Visible then
- if v.lock.Image == "rbxassetid://1560780402" then
- desc = v:FindFirstChild("desc2")
- if desc then
- gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
- gui.followmouse.Equip1.Visible = false
- gui.followmouse.Equip2.Visible = false
- gui.followmouse.Purchase.Visible = true
- gui.followmouse.kg.Visible = false
- gui.followmouse.Purchase.Info.Stat.Text = desc.nam.Value
- gui.followmouse.Purchase.Info.level.Text = "Location: " .. desc.location.Value
- gui.followmouse.Purchase.Info.money.Text = "Type: " .. desc.typ.Value
- gui.followmouse.Purchase.Info.name.Text = desc.ist.Value
- gui.followmouse.Purchase.Info.type.Text = "Spawn Time: " .. desc.spawn.Value
- gui.followmouse.Purchase.Info.img.Image = v.Image
- gui.followmouse.Purchase.Info.unlock.Visible = false
- if v:FindFirstChild("money2") then
- gui.followmouse.Purchase.Info.mons.Visible = true
- gui.followmouse.Purchase.Info.rs.Visible = true
- gui.followmouse.Purchase.Info.monz.Text = "RYO: " .. v.money2.Value
- changesub = v
- keyinput:FireServer("changesub", changesub)
- else
- gui.followmouse.Purchase.Info.mons.Visible = false
- gui.followmouse.Purchase.Info.rs.Visible = false
- gui.followmouse.Purchase.Info.monz.Text = ""
- changesub = nil
- keyinput:FireServer("changesub", changesub)
- end
- currentunlock = nil
- end
- return
- end
- desc = v:FindFirstChild("desc")
- if desc then
- gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
- gui.followmouse.Equip1.Visible = false
- gui.followmouse.Equip2.Visible = false
- gui.followmouse.Purchase.Visible = true
- gui.followmouse.kg.Visible = false
- gui.followmouse.Purchase.Info.Stat.Text = desc.minus.Value .. ": " .. desc.stat.Value
- gui.followmouse.Purchase.Info.level.Text = "Level: " .. desc.cool.Value
- gui.followmouse.Purchase.Info.money.Text = "Money: " .. desc.money.Value
- gui.followmouse.Purchase.Info.name.Text = desc.nam.Value
- gui.followmouse.Purchase.Info.type.Text = "Type: " .. desc.typ.Value
- gui.followmouse.Purchase.Info.img.Image = v.Image
- currentunlock = v
- gui.followmouse.Purchase.Info.unlock.Visible = true
- gui.followmouse.Purchase.Info.mons.Visible = false
- gui.followmouse.Purchase.Info.rs.Visible = false
- gui.followmouse.Purchase.Info.monz.Text = ""
- changesub = nil
- keyinput:FireServer("changesub", changesub)
- end
- return
- end
- if v.typ.Value == "mode" then
- keyinput:FireServer("equipmode", v)
- sound(script, 342472438)
- return
- end
- gui.followmouse.Purchase.Info.unlock.Visible = true
- desc = v:FindFirstChild("desc")
- gui.followmouse.Equip1.Info.cool.Text = "UNLOCKED"
- gui.followmouse.Equip1.Info.name.Text = desc.nam.Value
- gui.followmouse.Equip1.Info.type.Text = "Type: " .. desc.typ.Value
- gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
- gui.followmouse.Equip1.Visible = true
- gui.followmouse.Equip2.Visible = false
- gui.followmouse.Purchase.Visible = false
- gui.followmouse.kg.Visible = false
- currentjutsu = v.Name
- end)
- end
- end
- for _, v in pairs(menu.Wep:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseButton1Down:connect(function()
- sound(script, 154020879, 1)
- if v.lock.Visible then
- desc = v:FindFirstChild("desc")
- if desc then
- gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
- gui.followmouse.Equip1.Visible = false
- gui.followmouse.Equip2.Visible = false
- gui.followmouse.Purchase.Visible = true
- gui.followmouse.kg.Visible = false
- gui.followmouse.Purchase.Info.Stat.Text = "Taijutsu: " .. desc.stat.Value
- gui.followmouse.Purchase.Info.level.Text = "Level: " .. desc.cool.Value
- gui.followmouse.Purchase.Info.money.Text = "Money: " .. desc.money.Value
- gui.followmouse.Purchase.Info.name.Text = desc.nam.Value
- gui.followmouse.Purchase.Info.type.Text = "Type: " .. desc.typ.Value
- gui.followmouse.Purchase.Info.img.Image = v.Image
- currentunlock = v
- end
- return
- end
- if Player.keys.wep1.Value == v.Name then
- keyinput:FireServer("unequip", "wep1")
- return
- end
- if Player.keys.wep2.Value == v.Name then
- keyinput:FireServer("unequip", "wep2")
- return
- end
- if Player.keys.wep3.Value == v.Name then
- keyinput:FireServer("unequip", "wep3")
- return
- end
- desc = v:FindFirstChild("desc")
- gui.followmouse.Equip2.Info.cool.Text = "UNLOCKED"
- gui.followmouse.Equip2.Info.name.Text = desc.nam.Value
- gui.followmouse.Equip2.Info.type.Text = "Type: " .. desc.typ.Value
- gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
- gui.followmouse.Equip1.Visible = false
- gui.followmouse.Equip2.Visible = true
- gui.followmouse.Purchase.Visible = false
- gui.followmouse.kg.Visible = false
- currentwep = v.Name
- end)
- end
- end
- for _, v in pairs(menu.Comp:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseButton1Down:connect(function()
- sound(script, 154020879, 1)
- gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
- gui.followmouse.Equip1.Visible = false
- gui.followmouse.Equip2.Visible = true
- gui.followmouse.Purchase.Visible = false
- gui.followmouse.kg.Visible = false
- end)
- end
- end
- for _, v in pairs(menu.KG1:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseButton1Down:connect(function()
- sound(script, 154020879, 1)
- if v.lock.Visible then
- gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
- gui.followmouse.Equip1.Visible = false
- gui.followmouse.Equip2.Visible = false
- gui.followmouse.Purchase.Visible = false
- gui.followmouse.kg.Visible = true
- for _, mn in pairs(rs.allkg:GetChildren()) do
- if mn.Name == menu.KG1.kg.Value then
- for _, nb in pairs(mn:GetChildren()) do
- if nb:IsA("StringValue") and nb.Value == v.kg.Value then
- gui.followmouse.kg.Info.name.Text = nb.nam.Value
- gui.followmouse.kg.Info.type.Text = "Level: " .. nb.lvl.Value
- end
- end
- end
- end
- return
- end
- gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
- gui.followmouse.Equip1.Visible = true
- gui.followmouse.Equip2.Visible = false
- gui.followmouse.Purchase.Visible = false
- gui.followmouse.kg.Visible = false
- for _, mn in pairs(rs.allkg:GetChildren()) do
- if mn.Name == menu.KG1.kg.Value then
- for _, nb in pairs(mn:GetChildren()) do
- if nb:IsA("StringValue") and nb.Value == v.kg.Value then
- gui.followmouse.Equip1.Info.cool.Text = "UNLOCKED"
- gui.followmouse.Equip1.Info.name.Text = nb.nam.Value
- gui.followmouse.Equip1.Info.type.Text = "Type: " .. nb.typ.Value
- end
- end
- end
- end
- currentjutsu = "kg"
- currentkgequip = v
- end)
- end
- end
- for _, v in pairs(menu.KG2:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseButton1Down:connect(function()
- sound(script, 154020879, 1)
- if v.lock.Visible then
- gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
- gui.followmouse.Equip1.Visible = false
- gui.followmouse.Equip2.Visible = false
- gui.followmouse.Purchase.Visible = false
- gui.followmouse.kg.Visible = true
- for _, mn in pairs(rs.allkg:GetChildren()) do
- if mn.Name == menu.KG2.kg.Value then
- for _, nb in pairs(mn:GetChildren()) do
- if nb:IsA("StringValue") and nb.Value == v.kg.Value then
- gui.followmouse.kg.Info.name.Text = nb.nam.Value
- gui.followmouse.kg.Info.type.Text = "Level: " .. nb.lvl.Value
- end
- end
- end
- end
- return
- end
- gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
- gui.followmouse.Equip1.Visible = true
- gui.followmouse.Equip2.Visible = false
- gui.followmouse.Purchase.Visible = false
- gui.followmouse.kg.Visible = false
- for _, mn in pairs(rs.allkg:GetChildren()) do
- if mn.Name == menu.KG2.kg.Value then
- for _, nb in pairs(mn:GetChildren()) do
- if nb:IsA("StringValue") and nb.Value == v.kg.Value then
- gui.followmouse.Equip1.Info.cool.Text = "UNLOCKED"
- gui.followmouse.Equip1.Info.name.Text = nb.nam.Value
- gui.followmouse.Equip1.Info.type.Text = "Type: " .. nb.typ.Value
- end
- end
- end
- end
- currentjutsu = "kg"
- currentkgequip = v
- end)
- end
- end
- for _, v in pairs(menu.KG3:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseButton1Down:connect(function()
- sound(script, 154020879, 1)
- if v.lock.Visible then
- gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
- gui.followmouse.Equip1.Visible = false
- gui.followmouse.Equip2.Visible = false
- gui.followmouse.Purchase.Visible = false
- gui.followmouse.kg.Visible = true
- for _, mn in pairs(rs.allkg:GetChildren()) do
- if mn.Name == menu.KG3.kg.Value then
- for _, nb in pairs(mn:GetChildren()) do
- if nb:IsA("StringValue") and nb.Value == v.kg.Value then
- gui.followmouse.kg.Info.name.Text = nb.nam.Value
- gui.followmouse.kg.Info.type.Text = "Level: " .. nb.lvl.Value
- end
- end
- end
- end
- return
- end
- gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
- gui.followmouse.Equip1.Visible = true
- gui.followmouse.Equip2.Visible = false
- gui.followmouse.Purchase.Visible = false
- gui.followmouse.kg.Visible = false
- for _, mn in pairs(rs.allkg:GetChildren()) do
- if mn.Name == menu.KG3.kg.Value then
- for _, nb in pairs(mn:GetChildren()) do
- if nb:IsA("StringValue") and nb.Value == v.kg.Value then
- gui.followmouse.Equip1.Info.cool.Text = "UNLOCKED"
- gui.followmouse.Equip1.Info.name.Text = nb.nam.Value
- gui.followmouse.Equip1.Info.type.Text = "Type: " .. nb.typ.Value
- end
- end
- end
- end
- currentjutsu = "kg"
- currentkgequip = v
- end)
- end
- end
- for _, v in pairs(menu.KG4:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseButton1Down:connect(function()
- sound(script, 154020879, 1)
- if v.lock.Visible then
- gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
- gui.followmouse.Equip1.Visible = false
- gui.followmouse.Equip2.Visible = false
- gui.followmouse.Purchase.Visible = false
- gui.followmouse.kg.Visible = true
- for _, mn in pairs(rs.allkg:GetChildren()) do
- if mn.Name == menu.KG4.kg.Value then
- for _, nb in pairs(mn:GetChildren()) do
- if nb:IsA("StringValue") and nb.Value == v.kg.Value then
- gui.followmouse.kg.Info.name.Text = nb.nam.Value
- gui.followmouse.kg.Info.type.Text = "Level: " .. nb.lvl.Value
- end
- end
- end
- end
- return
- end
- gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
- gui.followmouse.Equip1.Visible = true
- gui.followmouse.Equip2.Visible = false
- gui.followmouse.Purchase.Visible = false
- gui.followmouse.kg.Visible = false
- for _, mn in pairs(rs.allkg:GetChildren()) do
- if mn.Name == menu.KG4.kg.Value then
- for _, nb in pairs(mn:GetChildren()) do
- if nb:IsA("StringValue") and nb.Value == v.kg.Value then
- gui.followmouse.Equip1.Info.cool.Text = "UNLOCKED"
- gui.followmouse.Equip1.Info.name.Text = nb.nam.Value
- gui.followmouse.Equip1.Info.type.Text = "Type: " .. nb.typ.Value
- end
- end
- end
- end
- currentjutsu = "kg"
- currentkgequip = v
- end)
- end
- end
- function closeallframes()
- for _, v in pairs(menu:GetChildren()) do
- if v:IsA("ScrollingFrame") or v:IsA("Frame") then
- v.Visible = false
- end
- end
- gui.followmouse.Equip1.Visible = false
- gui.followmouse.Equip2.Visible = false
- gui.followmouse.Purchase.Visible = false
- gui.followmouse.kg.Visible = false
- end
- menu.Companions.MouseButton1Down:connect(function()
- closeallframes()
- menu.Comp.Visible = true
- sound(script, 154020823, 1)
- end)
- menu.Kekkei1.MouseButton1Down:connect(function()
- closeallframes()
- menu.KG1.Visible = true
- sound(script, 154020823, 1)
- end)
- menu.team.MouseButton1Down:connect(function()
- closeallframes()
- menu.Teams.Visible = true
- sound(script, 154020823, 1)
- end)
- menu.Teams.Invite.Changed:connect(function()
- if menu.Teams.Invite.Text == "" or menu.Teams.Invite.Text == "ENTER NAME" then
- menu.Teams.Invite.frame.Visible = false
- menu.Teams.Invite.frame:ClearAllChildren()
- else
- menu.Teams.Invite.frame.Visible = true
- menu.Teams.Invite.frame:ClearAllChildren()
- numzzz = 0
- eee = game.Players:GetChildren()
- for i = 1, #eee do
- if string.find(string.lower(eee[i].Name), string.sub(string.lower(menu.Teams.Invite.Text), 0)) ~= 1 or menu.Teams.Invite.frame:FindFirstChild(eee[i].Name) then
- else
- numzzz = numzzz + 1
- a = script.text:clone()
- a.Parent = menu.Teams.Invite.frame
- a.Name = eee[i].Name
- a.Position = UDim2.new(0, 0, numzzz * 1.15, 0)
- a.Text = eee[i].Name
- end
- end
- for i, v in pairs(menu.Teams.Invite.frame:GetChildren()) do
- if v.ClassName == "TextButton" then
- v.MouseButton1Down:connect(function()
- keyinput:FireServer("addteam", v.Text)
- menu.Teams.Invite.Text = "ENTER NAME"
- end)
- end
- end
- end
- end)
- menu.Teams.Invite.p1.delete.MouseButton1Down:connect(function()
- keyinput:FireServer("removethisplr", 1)
- end)
- menu.Teams.Invite.p2.delete.MouseButton1Down:connect(function()
- keyinput:FireServer("removethisplr", 2)
- end)
- menu.Teams.Invite.p3.delete.MouseButton1Down:connect(function()
- keyinput:FireServer("removethisplr", 3)
- end)
- menu.Teams.Invite.p4.delete.MouseButton1Down:connect(function()
- keyinput:FireServer("removethisplr", 4)
- end)
- delaysave = false
- menu.save.MouseButton1Down:connect(function()
- if delaysave then
- return
- end
- delaysave = true
- menu.save.num.Text = "SAVING.."
- keyinput:FireServer("save")
- wait(5)
- delaysave = false
- menu.save.num.Text = "SAVE"
- end)
- menu.robux.MouseButton1Down:connect(function()
- closeallframes()
- menu.rob.Visible = true
- sound(script, 154020823, 1)
- end)
- for _, v in pairs(menu.rob:GetChildren()) do
- if v:IsA("ImageButton") then
- if v:FindFirstChild("pass") then
- v.MouseButton1Down:connect(function()
- game:GetService("MarketplaceService"):PromptProductPurchase(Player, v.pass.Value)
- end)
- end
- if v:FindFirstChild("gpass") then
- v.MouseButton1Down:connect(function()
- if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(Player.userId, v.gpass.Value) then
- else
- game:GetService("MarketplaceService"):PromptGamePassPurchase(Player, v.gpass.Value)
- end
- end)
- end
- end
- end
- menu.Kekkei2.MouseButton1Down:connect(function()
- closeallframes()
- menu.KG2.Visible = true
- sound(script, 154020823, 1)
- end)
- menu.Taijutsu.MouseButton1Down:connect(function()
- closeallframes()
- menu.Tai.Visible = true
- sound(script, 154020823, 1)
- end)
- gui.Menu3.clickmenu.MouseButton1Down:connect(function()
- if inmenu then
- inmenu = false
- gui.menu.Visible = false
- keyinput:FireServer("mouselock", true)
- return
- end
- inmenu = true
- gui.menu.Visible = true
- keyinput:FireServer("mouselock", false)
- end)
- menu.Kekkei3.MouseButton1Down:connect(function()
- closeallframes()
- menu.KG3.Visible = true
- sound(script, 154020823, 1)
- end)
- menu.Kekkei4.MouseButton1Down:connect(function()
- closeallframes()
- if gui.Menu4.main.KG4.spin.name.Text == "MAX-RANK REQ" then
- game:GetService("MarketplaceService"):PromptProductPurchase(Player, 226963112)
- return
- end
- menu.KG4.Visible = true
- sound(script, 154020823, 1)
- end)
- menu.Ninjutsu.MouseButton1Down:connect(function()
- closeallframes()
- menu.Nin.Visible = true
- sound(script, 154020823, 1)
- end)
- menu.Roleplay.MouseButton1Down:connect(function()
- closeallframes()
- menu.rp.Visible = true
- sound(script, 154020823, 1)
- end)
- menu.Subjutsu.MouseButton1Down:connect(function()
- closeallframes()
- menu.Sub.Visible = true
- sound(script, 154020823, 1)
- end)
- menu.Weapons.MouseButton1Down:connect(function()
- closeallframes()
- menu.Wep.Visible = true
- sound(script, 154020823, 1)
- end)
- menu.Credits.MouseButton1Down:connect(function()
- closeallframes()
- menu.Cred.Visible = true
- sound(script, 154020823, 1)
- end)
- menu.Stats.MouseButton1Down:connect(function()
- closeallframes()
- menu.Stat.Visible = true
- sound(script, 154020823, 1)
- end)
- gui.Menu3.BarHealth.bar.Size = UDim2.new(0.89 * (combatfolder.fakehealth.Value / combatfolder.fakehealth.MaxValue), 0, 0.48, 0)
- gui.Menu3.BarChakra.bar.Size = UDim2.new(0.89 * (combatfolder.magic.Value / combatfolder.magic.MaxValue), 0, 0.48, 0)
- gui.Menu3.BarMode.bar.Size = UDim2.new(0.72 * (combatfolder.mode.Value / combatfolder.mode.MaxValue), 0, 0.48, 0)
- gui.Menu3.BarStamina.bar.Size = UDim2.new(0.89 * (combatfolder.stamina.Value / combatfolder.stamina.MaxValue), 0, 0.48, 0)
- combatfolder.stamina.Changed:connect(function()
- gui.Menu3.BarStamina.bar.Size = UDim2.new(0.89 * (combatfolder.stamina.Value / combatfolder.stamina.MaxValue), 0, 0.48, 0)
- gui.Menu3.BarStamina.redbar:TweenSize(gui.Menu3.BarStamina.bar.Size, "Out", "Quad", 1, true)
- end)
- combatfolder.mode.Changed:connect(function()
- gui.Menu3.BarMode.bar.Size = UDim2.new(0.72 * (combatfolder.mode.Value / combatfolder.mode.MaxValue), 0, 0.48, 0)
- gui.Menu3.BarMode.redbar:TweenSize(gui.Menu3.BarMode.bar.Size, "Out", "Quad", 1, true)
- end)
- combatfolder.magic.Changed:connect(function()
- gui.Menu3.BarChakra.bar.Size = UDim2.new(0.89 * (combatfolder.magic.Value / combatfolder.magic.MaxValue), 0, 0.48, 0)
- gui.Menu3.BarChakra.num.Text = combatfolder.magic.Value .. "/" .. combatfolder.magic.MaxValue
- gui.Menu3.BarChakra.redbar:TweenSize(gui.Menu3.BarChakra.bar.Size, "Out", "Quad", 1, true)
- end)
- combatfolder.fakehealth.Changed:connect(function()
- gui.Menu3.BarHealth.bar.Size = UDim2.new(0.89 * (combatfolder.fakehealth.Value / combatfolder.fakehealth.MaxValue), 0, 0.48, 0)
- gui.Menu3.BarHealth.redbar:TweenSize(gui.Menu3.BarHealth.bar.Size, "Out", "Quad", 1, true)
- gui.Menu3.BarHealth.num.Text = combatfolder.fakehealth.Value .. "/" .. combatfolder.fakehealth.MaxValue
- if combatfolder.fakehealth.Value == combatfolder.fakehealth.MinValue then
- wait(5)
- end
- end)
- for _, v in pairs(menu.Stat:GetChildren()) do
- if v:IsA("TextLabel") and v:FindFirstChild("add") then
- v.add.MouseButton1Down:connect(function()
- keyinput:FireServer("addpoint", v.Name)
- end)
- end
- end
- lsttext = ""
- menu.rp.rp.Changed:connect(function(property)
- if property == "Text" then
- lsttext = menu.rp.rp.Text
- ab = string.len(lsttext)
- if ab > 12 then
- menu.rp.rp.Text = string.sub(menu.rp.rp.Text, 1, 12)
- end
- keyinput:FireServer("nam", menu.rp.rp.Text)
- end
- end)
- for _, v in pairs(menu.rp.clans:GetChildren()) do
- if v:IsA("TextButton") then
- v.MouseButton1Down:connect(function()
- keyinput:FireServer("changeclan", v.Text, v)
- end)
- end
- end
- for _, v in pairs(menu.rp.villages:GetChildren()) do
- if v:IsA("TextButton") then
- v.MouseButton1Down:connect(function()
- keyinput:FireServer("changevill", v.Text, v)
- end)
- end
- end
- menu.KG1.Equip.MouseButton1Down:connect(function()
- sound(script, 154020823, 1)
- keyinput:FireServer("kg", 1)
- end)
- menu.KG2.Equip.MouseButton1Down:connect(function()
- sound(script, 154020823, 1)
- keyinput:FireServer("kg", 2)
- end)
- menu.KG3.Equip.MouseButton1Down:connect(function()
- sound(script, 154020823, 1)
- keyinput:FireServer("kg", 3)
- end)
- menu.KG4.Equip.MouseButton1Down:connect(function()
- sound(script, 154020823, 1)
- keyinput:FireServer("kg", 4)
- end)
- end)
- function Poszz(pos1, pos2)
- local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
- return CFrame.new(pos1, pos3)
- end
- inmenu = false
- inship = false
- pawn = script.punch:clone()
- currentorder = 0
- currentframe = {}
- currentcombos = {"weakstrong"}
- addcombat = 0
- gui:WaitForChild("comboframe")
- function creategui(tyyp)
- gui.comboframe:ClearAllChildren()
- currentorder = currentorder + 1
- table.insert(currentframe, tyyp)
- numz = 0
- addcombat = 1
- for i = 1, currentorder do
- local newgui = pawn:clone()
- newgui.Position = UDim2.new(0.475 - (currentorder - i / 2) * 0.027 / 1.08 + (i - 1) * 0.04, 0, 0.75, 0)
- if currentframe[i] == "weak" then
- newgui.weak.Visible = true
- else
- newgui.strong.Visible = true
- end
- newgui.ImageColor3 = BrickColor.Blue().Color
- newgui.Parent = gui.comboframe
- numz = currentorder
- end
- strongui = nil
- local newgui = pawn:clone()
- newgui.Position = UDim2.new(0.475 - (currentorder - numz / 2) * 0.027 / 1.08 + (numz - 1) * 0.04 + 0.05, 0, 0.67, 0)
- newgui.strong.Visible = true
- newgui.ImageColor3 = BrickColor.Green().Color
- newgui.Parent = gui.comboframe
- strongui = newgui
- local newgui = pawn:clone()
- newgui.Position = UDim2.new(0.475 - (currentorder - numz / 2) * 0.027 / 1.08 + (numz - 1) * 0.04 + 0.093, 0, 0.58, 0)
- newgui:ClearAllChildren()
- newgui.ImageColor3 = BrickColor.White().Color
- newgui.Parent = gui.comboframe
- newgui.Visible = false
- currentcomboszz = newgui
- local newgui = pawn:clone()
- newgui.Position = UDim2.new(0.475 - (currentorder - numz / 2) * 0.027 / 1.08 + (numz - 1) * 0.04 + 0.05, 0, 0.77, 0)
- newgui.weak.Visible = true
- newgui.ImageColor3 = BrickColor.Green().Color
- newgui.Parent = gui.comboframe
- anewcombo = ""
- for i = 1, #currentframe do
- anewcombo = anewcombo .. currentframe[i]
- end
- alreadycombo = false
- lastwan = ""
- if currentcombos[1] then
- for _, dsss in pairs(currentcombos) do
- if anewcombo == dsss then
- lastwan = dsss
- break
- end
- end
- end
- predictcombo = anewcombo .. "strong"
- for _, dsss in pairs(currentcombos) do
- if predictcombo == dsss then
- strongui.ImageColor3 = BrickColor.new("Gold").Color
- for _, v in pairs(gui.menu.Tai:GetChildren()) do
- if v:FindFirstChild("combo") and v.combo.Value == predictcombo then
- currentcomboszz.Image = v.Image
- currentcomboszz.Visible = true
- end
- end
- break
- end
- end
- predictcombo = anewcombo .. "weak"
- for _, dsss in pairs(currentcombos) do
- if predictcombo == dsss then
- strongui.ImageColor3 = BrickColor.new("Gold").Color
- newgui.strong.Visible = false
- newgui.weak.Visible = true
- for _, v in pairs(gui.menu.Tai:GetChildren()) do
- if v:FindFirstChild("combo") and v.combo.Value == predictcombo then
- currentcomboszz.Image = v.Image
- currentcomboszz.Visible = true
- end
- end
- break
- end
- end
- if alreadycombo then
- elseif lastwan == "strongstrongstrongstrongstrongstrongweak" then
- combatanimz:Stop()
- alreadycombo = true
- gui.comboframe:ClearAllChildren()
- currentorder = 0
- currentframe = {}
- enabled = true
- slowdowncharacter = true
- disableautorotate = true
- delay(0, function()
- keyinput:FireServer("combo2", "custom", 1541484681, "reverseflame")
- pushcharc2 = true
- for i = 1, 6 do
- wait()
- wait(0.1)
- pushcharc = true
- if aaa[2] then
- keyinput:FireServer("combat", aaa[2].Parent)
- rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
- end
- wait(0.1)
- pushcharc = false
- end
- pushcharc = true
- pushcharc2 = false
- end)
- wait(1.5)
- pushcharc = false
- slowdowncharacter = false
- disableautorotate = false
- end
- if alreadycombo then
- elseif lastwan == "weakweakweakweakweakweakstrong" then
- combatanimz:Stop()
- alreadycombo = true
- gui.comboframe:ClearAllChildren()
- currentorder = 0
- currentframe = {}
- enabled = true
- slowdowncharacter = true
- disableautorotate = true
- delay(0, function()
- keyinput:FireServer("combo2", "custom", 1541457570, "blow")
- for i = 1, 6 do
- wait()
- wait(0.1)
- pushcharc = true
- if aaa[2] then
- keyinput:FireServer("combat", aaa[2].Parent)
- rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
- end
- wait(0.1)
- pushcharc = false
- end
- pushcharc = true
- end)
- wait(1.5)
- pushcharc = false
- slowdowncharacter = false
- disableautorotate = false
- end
- if alreadycombo then
- elseif lastwan == "strongstrongstrongstrongstrongweak" then
- combatanimz:Stop()
- alreadycombo = true
- gui.comboframe:ClearAllChildren()
- currentorder = 0
- currentframe = {}
- enabled = true
- slowdowncharacter = true
- disableautorotate = true
- delay(0, function()
- keyinput:FireServer("combo2", "custom", 1540035592, "blowback")
- for i = 1, 5 do
- wait()
- wait(0.1)
- pushcharc = true
- if aaa[2] then
- keyinput:FireServer("combat", aaa[2].Parent)
- rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
- end
- wait(0.1)
- pushcharc = false
- end
- pushcharc = true
- end)
- wait(1.5)
- pushcharc = false
- slowdowncharacter = false
- disableautorotate = false
- end
- if alreadycombo then
- elseif lastwan == "weakweakweakweakweakstrong" then
- combatanimz:Stop()
- alreadycombo = true
- gui.comboframe:ClearAllChildren()
- currentorder = 0
- currentframe = {}
- enabled = true
- slowdowncharacter = true
- disableautorotate = true
- delay(0, function()
- keyinput:FireServer("combo2", "custom", 1538607915, "whirl")
- for i = 1, 5 do
- wait()
- wait(0.1)
- pushcharc = true
- if aaa[2] then
- keyinput:FireServer("combat", aaa[2].Parent)
- rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
- end
- wait(0.1)
- pushcharc = false
- end
- pushcharc = true
- end)
- wait(1.5)
- pushcharc = false
- slowdowncharacter = false
- disableautorotate = false
- end
- if alreadycombo then
- elseif lastwan == "strongstrongstrongstrongweak" then
- combatanimz:Stop()
- alreadycombo = true
- gui.comboframe:ClearAllChildren()
- currentorder = 0
- currentframe = {}
- enabled = true
- slowdowncharacter = true
- disableautorotate = true
- delay(0, function()
- keyinput:FireServer("combo2", "custom", 1538498176, "dragonfist")
- for i = 1, 5 do
- wait()
- wait(0.1)
- pushcharc = true
- if aaa[2] then
- keyinput:FireServer("combat", aaa[2].Parent)
- rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
- end
- wait(0.1)
- pushcharc = false
- end
- pushcharc = true
- end)
- wait(1.5)
- pushcharc = false
- slowdowncharacter = false
- disableautorotate = false
- end
- if alreadycombo then
- elseif lastwan == "weakweakweakweakstrong" then
- combatanimz:Stop()
- alreadycombo = true
- gui.comboframe:ClearAllChildren()
- currentorder = 0
- currentframe = {}
- enabled = true
- slowdowncharacter = true
- disableautorotate = true
- delay(0, function()
- keyinput:FireServer("combo2", "custom", 1538498176, "dragonfist")
- for i = 1, 5 do
- wait()
- wait(0.1)
- pushcharc = true
- if aaa[2] then
- keyinput:FireServer("combat", aaa[2].Parent)
- rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
- end
- wait(0.1)
- pushcharc = false
- end
- pushcharc = true
- end)
- wait(1.5)
- pushcharc = false
- slowdowncharacter = false
- disableautorotate = false
- end
- if alreadycombo then
- elseif lastwan == "strongstrongstrongweak" then
- combatanimz:Stop()
- alreadycombo = true
- gui.comboframe:ClearAllChildren()
- currentorder = 0
- currentframe = {}
- enabled = true
- slowdowncharacter = true
- disableautorotate = true
- delay(0, function()
- keyinput:FireServer("combo2", "custom", 1538146587)
- for i = 1, 5 do
- wait()
- wait(0.1)
- pushcharc = true
- if aaa[2] then
- keyinput:FireServer("combat", aaa[2].Parent)
- rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
- end
- wait(0.1)
- pushcharc = false
- end
- pushcharc = true
- end)
- wait(1.5)
- pushcharc = false
- slowdowncharacter = false
- disableautorotate = false
- end
- if alreadycombo then
- elseif lastwan == "strongstrongweak" then
- combatanimz:Stop()
- alreadycombo = true
- gui.comboframe:ClearAllChildren()
- currentorder = 0
- currentframe = {}
- enabled = true
- slowdowncharacter = true
- disableautorotate = true
- delay(0, function()
- keyinput:FireServer("combo2", "custom", 1538071658, "entry")
- wait(0.2)
- pushcharc2 = true
- wait(1.1)
- pushcharc2 = false
- landstepz:Play()
- end)
- wait(1.5)
- pushcharc = false
- slowdowncharacter = false
- disableautorotate = false
- end
- if alreadycombo then
- elseif lastwan == "strongweak" then
- combatanimz:Stop()
- alreadycombo = true
- gui.comboframe:ClearAllChildren()
- currentorder = 0
- currentframe = {}
- enabled = true
- slowdowncharacter = true
- disableautorotate = true
- delay(0, function()
- keyinput:FireServer("combo2", "custom", 1537985686, "thousand")
- for i = 1, 5 do
- wait()
- wait(0.1)
- pushcharc = true
- if aaa[2] then
- keyinput:FireServer("combat", aaa[2].Parent)
- rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
- end
- wait(0.1)
- pushcharc = false
- end
- pushcharc = true
- end)
- wait(1.5)
- pushcharc = false
- slowdowncharacter = false
- disableautorotate = false
- end
- if alreadycombo then
- elseif lastwan == "weakweakweakstrong" then
- combatanimz:Stop()
- alreadycombo = true
- gui.comboframe:ClearAllChildren()
- currentorder = 0
- currentframe = {}
- enabled = true
- slowdowncharacter = true
- disableautorotate = true
- delay(0, function()
- keyinput:FireServer("combo2", 3)
- for i = 1, 5 do
- wait()
- wait(0.1)
- pushcharc = true
- if aaa[2] then
- keyinput:FireServer("combat", aaa[2].Parent)
- rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
- end
- wait(0.1)
- pushcharc = false
- end
- keyinput:FireServer("combo2", 4)
- pushcharc = true
- end)
- wait(1.5)
- pushcharc = false
- slowdowncharacter = false
- disableautorotate = false
- end
- if alreadycombo then
- elseif lastwan == "weakweakstrong" then
- combatanimz:Stop()
- alreadycombo = true
- gui.comboframe:ClearAllChildren()
- currentorder = 0
- currentframe = {}
- enabled = true
- slowdowncharacter = true
- disableautorotate = true
- keyinput:FireServer("combo2", 2)
- delay(0, function()
- for i = 1, 5 do
- wait()
- wait(0.1)
- pushcharc = true
- if aaa[2] then
- keyinput:FireServer("combat", aaa[2].Parent)
- rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
- end
- wait(0.1)
- pushcharc = false
- end
- pushcharc = true
- end)
- wait(1.5)
- pushcharc = false
- slowdowncharacter = false
- disableautorotate = false
- end
- if alreadycombo then
- elseif lastwan == "weakstrong" then
- combatanimz:Stop()
- alreadycombo = true
- gui.comboframe:ClearAllChildren()
- currentorder = 0
- currentframe = {}
- enabled = true
- slowdowncharacter = true
- disableautorotate = true
- keyinput:FireServer("combo2", 1)
- delay(0, function()
- for i = 1, 5 do
- wait()
- pushcharc = true
- if aaa[2] then
- keyinput:FireServer("combat", aaa[2].Parent)
- rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
- end
- wait(0.2)
- pushcharc = false
- end
- end)
- wait(1.5)
- pushcharc = false
- slowdowncharacter = false
- disableautorotate = false
- end
- if #currentframe > 10 then
- gui.comboframe:ClearAllChildren()
- currentorder = 0
- currentframe = {}
- end
- end
- holddownsword = false
- holddown2 = false
- intreejump = false
- UserInputService.InputEnded:connect(function(input, processed)
- if input.UserInputType == Enum.UserInputType.Gamepad1 then
- if input.KeyCode == Enum.KeyCode.ButtonA then
- kufunction(" ")
- end
- if input.KeyCode == Enum.KeyCode.ButtonY then
- kufunction("z")
- end
- if input.KeyCode == Enum.KeyCode.ButtonX then
- kufunction("c")
- end
- if input.KeyCode == Enum.KeyCode.ButtonB then
- kufunction("block")
- if inmenu then
- inmenu = false
- gui.menu.Visible = false
- keyinput:FireServer("mouselock", true)
- end
- if gui.club.Visible then
- gui.club.Visible = false
- end
- if gui.tutorial.Visible then
- gui.tutorial.Visible = false
- end
- end
- if input.KeyCode == Enum.KeyCode.ButtonL2 then
- kdfunction("clickrup")
- end
- if input.KeyCode == Enum.KeyCode.DPadLeft then
- if inmenu then
- return
- end
- kufunction("q")
- end
- if input.KeyCode == Enum.KeyCode.DPadDown then
- if inmenu then
- return
- end
- kufunction("v")
- end
- if input.KeyCode == Enum.KeyCode.DPadRight then
- if inmenu then
- return
- end
- kufunction("e")
- end
- if input.KeyCode == Enum.KeyCode.DPadUp then
- if inmenu then
- return
- end
- kufunction("w")
- end
- if input.KeyCode == Enum.KeyCode.ButtonL3 then
- kufunction("0")
- end
- if input.KeyCode == Enum.KeyCode.ButtonX then
- holddownx = false
- end
- if input.KeyCode == Enum.KeyCode.DPadUp then
- if inmenu then
- return
- end
- holddownup = false
- end
- end
- end)
- keyz = {
- "r",
- "t",
- "y",
- "f",
- "g",
- "h",
- "1",
- "2",
- "3"
- }
- currentkeey = 0
- UserInputService.InputChanged:connect(function(input, processed)
- if input.UserInputType == Enum.UserInputType.Gamepad1 then
- slowdownturn = true
- if input.KeyCode == Enum.KeyCode.Thumbstick1 then
- a = 0
- d = 0
- w = 0
- s = 0
- if input.Position.X > 0.2 then
- a = 0
- d = 1
- elseif input.Position.X < -0.2 then
- a = 1
- d = 0
- end
- if input.Position.Y == 1 then
- w = 1
- s = 0
- elseif input.Position.Y == -1 then
- w = 0
- d = 1
- end
- end
- end
- end)
- holddownx = false
- holddownup = false
- holdowzzzn = ""
- function fireapower()
- apos = mousehit()
- keyinput:FireServer("mouse", apos)
- keyinput:FireServer("firepower", currentselect)
- currentselect = 0
- locategui()
- end
- function typguis(getadd)
- if getadd == "left" then
- for i = 1, 9 do
- gui.Menu3["key" .. i].img.Visible = false
- end
- for i = 1, 5 do
- gui.Menu3["key" .. i].img.Visible = true
- end
- gui.Menu3["key" .. 5].img.Image = "rbxassetid://1049820267"
- gui.Menu3.RB.Visible = false
- gui.Menu3.LB.Visible = true
- elseif getadd == "right" then
- for i = 1, 9 do
- gui.Menu3["key" .. i].img.Visible = false
- end
- for i = 5, 9 do
- gui.Menu3["key" .. i].img.Visible = true
- end
- gui.Menu3["key" .. 5].img.Image = "rbxassetid://1049819993"
- gui.Menu3.RB.Visible = true
- gui.Menu3.LB.Visible = false
- elseif getadd == "revert" then
- gui.Menu3.RB.Visible = true
- gui.Menu3.LB.Visible = true
- for i = 1, 9 do
- gui.Menu3["key" .. i].img.Visible = false
- end
- end
- end
- function setholdown(bag)
- holddown = bag
- keyinput:FireServer("holddown", holddown)
- end
- UserInputService.InputBegan:connect(function(input, processed)
- if input.UserInputType == Enum.UserInputType.Gamepad1 then
- if input.KeyCode == Enum.KeyCode.ButtonR1 then
- currentkeey = currentkeey + 1
- if currentkeey > #keyz then
- currentkeey = 1
- end
- kdfunction(keyz[currentkeey])
- end
- if input.KeyCode == Enum.KeyCode.ButtonL1 then
- currentkeey = currentkeey - 1
- if currentkeey < 1 then
- currentkeey = #keyz
- end
- kdfunction(keyz[currentkeey])
- end
- if input.KeyCode == Enum.KeyCode.ButtonX and holddownup then
- kdfunction("b")
- return
- end
- if input.KeyCode == Enum.KeyCode.DPadUp then
- if inmenu then
- return
- end
- holddownup = true
- end
- if input.KeyCode == Enum.KeyCode.ButtonA then
- kdfunction(" ")
- end
- if input.KeyCode == Enum.KeyCode.ButtonY then
- kdfunction("z")
- end
- if input.KeyCode == Enum.KeyCode.ButtonX then
- kdfunction("c")
- end
- if input.KeyCode == Enum.KeyCode.ButtonB then
- kdfunction("block")
- end
- if input.KeyCode == Enum.KeyCode.ButtonL2 then
- kdfunction("clickr")
- end
- if input.KeyCode == Enum.KeyCode.DPadDown then
- if inmenu then
- return
- end
- kdfunction("v")
- end
- if input.KeyCode == Enum.KeyCode.DPadLeft then
- if inmenu then
- return
- end
- kdfunction("q")
- end
- if input.KeyCode == Enum.KeyCode.DPadRight then
- if inmenu then
- return
- end
- kdfunction("e")
- end
- if input.KeyCode == Enum.KeyCode.DPadUp then
- if inmenu then
- return
- end
- kdfunction("w")
- end
- if input.KeyCode == Enum.KeyCode.ButtonL3 then
- kdfunction("0")
- end
- end
- end)
- wcooldown = false
- qcooldown = false
- ecooldown = false
- scooldown = false
- function kdfunction(key)
- key = string.lower(key)
- if key == "z" then
- apos = mousehit()
- keyinput:FireServer("mouse", apos)
- end
- if key == "w" then
- w = 1
- end
- if key == "s" then
- s = 1
- end
- if key == "a" then
- a = 1
- end
- if key == "d" then
- d = 1
- end
- if not inbuilding or key == "0" or key == "x" or key == "1" or key == "2" or key == "3" or key == "c" or key == " " then
- else
- return
- end
- if storymode then
- dontdisable = false
- if storymode.onlycombatkeys.Value then
- if key == "clickr" or key == "clickrup" or key == "clickl" or key == " " or key == "q" or key == "e" or key:byte() == 9 or key == "block" or key == "0" or key == "w" or key == "x" then
- dontdisable = true
- print("FDFD")
- else
- return
- end
- else
- dontdisable = true
- end
- if dontdisable then
- if key == storymode.certainkey.Value then
- effectz:FireServer("certainkey", "")
- elseif storymode.disablekeys.Value then
- return
- end
- end
- end
- if key == "clickrup" then
- holddown2 = false
- if holddownsword then
- holddownsword = false
- end
- end
- if key:byte() == 9 or key == "block" then
- if inblock then
- return
- end
- inblock = true
- blockidlz:Play()
- keyinput:FireServer("block", true)
- end
- if key == "m" then
- if inmenu then
- inmenu = false
- gui.menu.Visible = false
- keyinput:FireServer("mouselock", true)
- return
- end
- inmenu = true
- gui.menu.Visible = true
- keyinput:FireServer("mouselock", false)
- end
- if key == "r" then
- if inblock or holddown then
- return
- end
- if currentselect == 1 then
- currentselect = 0
- locategui()
- return
- end
- currentselect = tonumber("1")
- locategui()
- end
- if key == "t" then
- if inblock or holddown then
- return
- end
- if currentselect == 2 then
- currentselect = 0
- locategui()
- return
- end
- currentselect = tonumber("2")
- locategui()
- end
- if key == "y" then
- if inblock or holddown then
- return
- end
- if currentselect == 3 then
- currentselect = 0
- locategui()
- return
- end
- currentselect = tonumber("3")
- locategui()
- end
- if key == "f" then
- if inblock or holddown then
- return
- end
- if currentselect == 4 then
- currentselect = 0
- locategui()
- return
- end
- currentselect = tonumber("4")
- locategui()
- end
- if key == "g" then
- if inblock or holddown then
- return
- end
- if currentselect == 5 then
- currentselect = 0
- locategui()
- return
- end
- currentselect = tonumber("5")
- locategui()
- end
- if key == "h" then
- if inblock or holddown then
- return
- end
- if currentselect == 6 then
- currentselect = 0
- locategui()
- return
- end
- currentselect = tonumber("6")
- locategui()
- end
- if key == "1" then
- if inblock or holddown then
- return
- end
- if currentselect == 7 then
- currentselect = 0
- locategui()
- keyinput:FireServer("removesword")
- return
- end
- currentselect = tonumber("7")
- locategui()
- keyinput:FireServer("wep1")
- end
- if key == "2" then
- if inblock or holddown then
- return
- end
- if currentselect == 8 then
- currentselect = 0
- locategui()
- keyinput:FireServer("removesword")
- return
- end
- currentselect = tonumber("8")
- locategui()
- keyinput:FireServer("wep2")
- end
- if key == "3" then
- if inblock or holddown then
- return
- end
- if currentselect == 9 then
- currentselect = 0
- locategui()
- keyinput:FireServer("removesword")
- return
- end
- currentselect = tonumber("9")
- locategui()
- keyinput:FireServer("wep3")
- end
- if key == "0" then
- chakrarun = true
- updateanim()
- end
- if key == "e" and gui.counter.Visible then
- keyinput:FireServer("counter", 1)
- end
- if enabled or disableplr or disabled or combatfolder.stunplayer.Value or combatfolder.down.Value or inship then
- return
- end
- if key == "b" then
- keyinput:FireServer("createclone")
- end
- if key == "clickl" then
- if inblock then
- return
- end
- if 5 <= combatfolder.stamina.Value then
- combatfolder.stamina.Value = combatfolder.stamina.Value - 5
- else
- return
- end
- if holddown2 or holddownsword then
- return
- end
- enabled = true
- punczzhL:Play()
- punch = punch + 1
- if punch > #origcombattab then
- punch = 1
- end
- disableautorotate = true
- combatanim.AnimationId = "rbxassetid://" .. origcombattab[punch]
- if equipsword then
- aaasds = math.random(1, 2)
- if aaasds == 2 then
- combatanim.AnimationId = "rbxassetid://" .. origcombattab2[punch]
- end
- end
- combatanimz = humanoid:LoadAnimation(combatanim)
- combatanimz:Play()
- aaa = closestplr4(Character)
- keyinput:FireServer("slash")
- slowdowncharacter = true
- local canthrow = true
- local findswordz = Character:FindFirstChild("sword")
- if findswordz and findswordz:FindFirstChild("throw2") then
- canthrow = false
- punch = 1
- combatanim.AnimationId = "rbxassetid://" .. origcombattab[punch]
- combatanimz = humanoid:LoadAnimation(combatanim)
- combatanimz:Play()
- keyinput:FireServer("checkwep", apos)
- wait(combatanimz.Length - 0.3)
- end
- if canthrow then
- creategui("weak")
- keyinput:FireServer("combat")
- if aaa[2] then
- rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
- end
- if inmainpower then
- rootpart.Velocity = rootpart.CFrame.lookVector * 30
- else
- rootpart.Velocity = rootpart.CFrame.lookVector * 30
- end
- pushcharc = true
- if equipsword then
- wait(combatanimz.Length - 0.3)
- else
- wait(combatanimz.Length - 0.3)
- end
- end
- pushcharc = false
- enabled = false
- slowdowncharacter = false
- disableautorotate = false
- end
- if key == "clickr" then
- if inblock then
- return
- end
- if 5 <= combatfolder.stamina.Value then
- combatfolder.stamina.Value = combatfolder.stamina.Value - 5
- else
- return
- end
- print(equipsword, strongcombattab[3], "SfsdfSD")
- if equipsword and strongcombattab[3] then
- enabled = true
- holddown2 = true
- holddownsword = true
- local amtoftime = 0
- local createnoise = 0
- combatanimz:Stop()
- combatanim.AnimationId = "rbxassetid://" .. strongcombattab[1]
- combatanimz = humanoid:LoadAnimation(combatanim)
- combatanimz:Play()
- repeat
- amtoftime = amtoftime + 0.02
- createnoise = createnoise + 0.05
- if createnoise >= 1 - createnoise then
- createnoise = 0
- sound(rootpart, 180204562, 1)
- humanoid.CameraOffset = origcameraoffset + Vector3.new(math.random(-3, 3) * 0.02, math.random(-3, 3) * 0.02, math.random(-3, 3) * 0.02)
- end
- combatanimz:AdjustSpeed(0.4)
- if amtoftime >= 1 then
- combatanimz:Stop()
- combatanim.AnimationId = "rbxassetid://" .. strongcombattab[2]
- combatanimz = humanoid:LoadAnimation(combatanim)
- combatanimz:Play()
- break
- end
- renderstepped:wait()
- until holddownsword == false or holddown
- if amtoftime >= 1 then
- if amtoftime >= 1 then
- keyinput:FireServer("getwepchakra")
- end
- repeat
- humanoid.CameraOffset = origcameraoffset + Vector3.new(math.random(-3, 3) * 0.02, math.random(-3, 3) * 0.02, math.random(-3, 3) * 0.02)
- createnoise = createnoise + 0.1
- if createnoise >= 0.8 then
- createnoise = 0
- sound(rootpart, 180204562, 1)
- end
- renderstepped:wait()
- until holddownsword == false
- pushcharc = true
- combatanimz:Stop()
- punczzhL:Play()
- punch = punch + 1
- if punch > #origcombattab then
- punch = 1
- end
- disableautorotate = true
- combatanim.AnimationId = "rbxassetid://" .. origcombattab[punch]
- combatanimz = humanoid:LoadAnimation(combatanim)
- combatanimz:Play()
- sound(rootpart, 260430015, 5)
- holddown2 = false
- keyinput:FireServer("combat2")
- aaa = closestplr4(Character)
- if aaa[2] then
- keyinput:FireServer("combo", aaa[2].Parent)
- end
- cantchangeanim = true
- keyinput:FireServer("fireweppower")
- wait(combatanimz.Length - 0.2)
- else
- pushcharc = true
- combatanimz:Stop()
- punch = punch + 1
- if punch > #origcombattab then
- punch = 1
- end
- disableautorotate = true
- combatanim.AnimationId = "rbxassetid://" .. origcombattab[punch]
- if equipsword then
- aaasds = math.random(1, 2)
- if aaasds == 2 then
- punch = punch + 1
- punczzhL:Play()
- if punch > #strongcombattab then
- punch = 1
- end
- combatanim.AnimationId = "rbxassetid://" .. origstrongcombattab[punch]
- end
- end
- combatanimz = humanoid:LoadAnimation(combatanim)
- combatanimz:Play()
- aaa = closestplr4(Character)
- keyinput:FireServer("slash")
- slowdowncharacter = true
- creategui("strong")
- keyinput:FireServer("combat2")
- if aaa[2] then
- rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
- end
- wait(combatanimz.Length - 0.2)
- end
- cantchangeanim = false
- holddown2 = false
- pushcharc = false
- slowdowncharacter = false
- holddownsword = false
- enabled = false
- disableautorotate = false
- return
- end
- enabled = true
- punch = punch + 1
- punczzhL:Play()
- if punch > #strongcombattab then
- punch = 1
- end
- combatanim.AnimationId = "rbxassetid://" .. strongcombattab[punch]
- combatanimz = humanoid:LoadAnimation(combatanim)
- combatanimz:Play()
- aaa = closestplr4(Character)
- keyinput:FireServer("slash")
- slowdowncharacter = true
- apos = mousehit()
- local canthrow = true
- local findswordz = Character:FindFirstChild("sword")
- if findswordz and (findswordz:FindFirstChild("throw") or findswordz:FindFirstChild("throw2")) then
- canthrow = false
- keyinput:FireServer("checkwep", apos)
- wait(combatanimz.Length - 0.3)
- end
- if canthrow then
- creategui("strong")
- keyinput:FireServer("combat2")
- if aaa[2] then
- rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
- end
- pushcharc = true
- if inmainpower then
- rootpart.Velocity = rootpart.CFrame.lookVector * 30
- else
- rootpart.Velocity = rootpart.CFrame.lookVector * 30
- end
- if equipsword then
- wait(combatanimz.Length)
- else
- wait(combatanimz.Length - 0.3)
- end
- pushcharc = false
- end
- enabled = false
- slowdowncharacter = false
- end
- if key == "z" then
- if charge then
- return
- end
- if delaycharge then
- return
- end
- chargeanimz:Play()
- charge2 = true
- keyinput:FireServer("mode", charge2)
- holddown = false
- if humanoid.AutoRotate == false then
- humanoid.AutoRotate = true
- end
- keyinput:FireServer("holddown", holddown)
- end
- if key == "c" then
- if charge2 then
- return
- end
- if delaycharge then
- return
- end
- chargeanimz:Play()
- charge = true
- keyinput:FireServer("charge", charge)
- holddown = false
- if humanoid.AutoRotate == false then
- humanoid.AutoRotate = true
- end
- keyinput:FireServer("holddown", holddown)
- end
- if key == " " then
- if flash then
- else
- cfr = rootpart.CFrame * CFrame.new(0, 0, -5)
- local path = Ray.new(rootpart.CFrame.p, (cfr.p - rootpart.CFrame.p).unit * 10)
- local Hit, Position = game.Workspace:FindPartOnRay(path, Character)
- if Hit then
- if intreejump then
- return
- end
- if Hit:IsDescendantOf(workspace.Tree) then
- intreejump = true
- jumpanimanim:Stop()
- treeidlzz:Stop()
- dbljumpanimanim:Stop()
- rootpart.Velocity = Vector3.new(0, 0, 0)
- rootpart.Velocity = rootpart.CFrame.lookVector * -30 + Vector3.new(0, 100, 0)
- treejumpz:Play()
- sound(rootpart, 147722270, 2)
- wait(0.3)
- intreejump = false
- return
- else
- end
- end
- end
- if cantdoublejump then
- return
- end
- doublejump = doublejump + 1
- cfr = rootpart.CFrame * CFrame.new(0, -5, 0)
- local path = Ray.new(rootpart.CFrame.p, (cfr.p - rootpart.CFrame.p).unit * 300)
- local Hit, Position = game.Workspace:FindPartOnRay(path, Character)
- if Hit and Hit:IsDescendantOf(workspace.Tree) and Hit.Name == "leaf" then
- lstjump = Hit
- end
- delay(0.4, function()
- lstjump = nil
- if doublejump == 1 then
- doublejump = 0
- end
- end)
- if 2 <= doublejump then
- if inblock then
- doublejump = 0
- cantdoublejump = true
- delay(1, function()
- cantdoublejump = false
- end)
- inteleport = true
- keyinput:FireServer("sub")
- rootpart.CFrame = rootpart.CFrame + Vector3.new(math.random(-5, 5), 50, math.random(-5, 5))
- fallanims:Play()
- wait(0.5)
- inteleport = false
- else
- doublejump = 0
- cantdoublejump = true
- delay(1, function()
- cantdoublejump = false
- end)
- if w == 1 and lstjump then
- lstjump = nil
- jumpanimanim:Stop()
- treeidlzz:Stop()
- treejumpz:Stop()
- dbljumpanimanim:Stop()
- rootpart.Velocity = Vector3.new(0, 0, 0)
- rootpart.Velocity = rootpart.CFrame.lookVector * 150 + Vector3.new(0, 70, 0)
- sound(rootpart, 147722270, 2)
- for i = 1, 5 do
- renderstepped:wait()
- forwardtreez:Play()
- end
- wait(0.3)
- forwardtreez:Stop()
- dbljumpanimanim:Play()
- rootpart.Velocity = Vector3.new(0, 0, 0)
- return
- end
- sound(rootpart, 147722227, 1)
- rootpart.Velocity = rootpart.Velocity + Vector3.new(0, 100, 0)
- dbljumpanimanim:Play()
- wait(0.6)
- fallanims:Play()
- end
- end
- end
- end
- chakrarun = false
- mouse.KeyDown:connect(function(key)
- if charge or charge2 then
- return
- end
- kdfunction(key)
- end)
- slidespeed = 0
- fly = false
- goingup = false
- goingdown = false
- function closegui()
- for i = 1, 10 do
- findgui = gui.comboframe:FindFirstChild(i)
- if findgui then
- findgui.Visible = false
- end
- end
- end
- run = true
- doublejump = 0
- cantdoublejump = false
- delaycharge = false
- pressw = 0
- presss = 0
- pressa = 0
- pressd = 0
- function kufunction(key)
- key = string.lower(key)
- if key == "z" then
- apos = mousehit()
- keyinput:FireServer("mouse", apos)
- end
- if key == "w" then
- w = 0
- end
- if key == "s" then
- s = 0
- end
- if key == "a" then
- a = 0
- end
- if key == "d" then
- d = 0
- end
- if not inbuilding or key == "0" or key == "x" or key == "1" or key == "2" or key == "3" or key == "c" or key == " " then
- else
- return
- end
- if storymode then
- dontdisable = false
- if storymode.onlycombatkeys.Value then
- if key == "clickr" or key == "clickrup" or key == "clickl" or key == " " or key == "q" or key == "e" or key:byte() == 9 or key == "block" or key == "0" or key == "w" or key == "x" then
- dontdisable = true
- print("FDFD")
- else
- return
- end
- else
- dontdisable = true
- end
- if dontdisable then
- if key == storymode.certainkey.Value then
- effectz:FireServer("certainkey", "")
- elseif storymode.disablekeys.Value then
- return
- end
- end
- end
- if key:byte() == 9 or key == "block" then
- inblock = false
- blockidlz:Stop()
- keyinput:FireServer("block", false)
- end
- if key == "w" then
- if enabled or disabled or disableplr or wcooldown then
- return
- end
- if inblock then
- return
- end
- pressw = pressw + 1
- delay(0.3, function()
- if pressw == 1 then
- pressw = 0
- end
- end)
- if pressw == 2 then
- wcooldown = true
- delay(2, function()
- wcooldown = false
- end)
- pressw = 0
- if combatfolder.stamina.Value >= 30 then
- enabled = true
- keyinput:FireServer("dashstamina")
- sound(rootpart, 147722227)
- stickgyro = true
- for i = 1, 4 do
- local partA = rootpart
- local attachmentA = Instance.new("Attachment", partA)
- attachmentA.Position = Vector3.new(0, 0, 0)
- local partB = rootpart
- local attachmentB = Instance.new("Attachment", partB)
- attachmentB.Position = Vector3.new(0, 0, 0)
- local hingeConstraint = Instance.new("Beam", partA)
- hingeConstraint.Attachment0 = attachmentA
- hingeConstraint.Attachment1 = attachmentB
- hingeConstraint.Width0 = 0
- hingeConstraint.Width1 = 1
- hingeConstraint.LightEmission = 1
- hingeConstraint.Color = ColorSequence.new(BrickColor.White().Color)
- game.Debris:AddItem(attachmentA, 1)
- game.Debris:AddItem(attachmentB, 1)
- game.Debris:AddItem(hingeConstraint, 1)
- local tweenInfo = TweenInfo.new(0.3, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 5, false, 0)
- local tweenInfo2 = TweenInfo.new(0.7, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0, false, 0)
- local propertyGoals = {
- Position = Vector3.new(math.random(-15, 15), math.random(-15, 15), 30)
- }
- local propertyGoals2 = {Width0 = 0, Width1 = 0}
- local propertyGoals3 = {
- Width0 = 0,
- Width1 = 0,
- CurveSize0 = math.random(-7, 7),
- CurveSize1 = math.random(-7, 7)
- }
- local tween = TweenService:Create(hingeConstraint, tweenInfo, propertyGoals2)
- local tween2 = TweenService:Create(attachmentB, tweenInfo2, propertyGoals)
- local tween4 = TweenService:Create(hingeConstraint, tweenInfo2, propertyGoals3)
- tween:Play()
- tween2:Play()
- tween4:Play()
- end
- disableautorotate = true
- b5.maxForce = Vector3.new(1 / 0, 0, 1 / 0)
- b5.Velocity = rootpart.CFrame.lookVector * 100
- wstepz:Play()
- for rtr = 1, 50 do
- renderstepped:wait()
- aaa = closestplr4(Character)
- if aaa[2] then
- gyrfly.MaxTorque = Vector3.new()
- rootpart.Velocity = Vector3.new(0, 0, 0)
- b5.maxForce = Vector3.new(0, 0, 0)
- b5.Velocity = rootpart.CFrame.lookVector * 0
- stickgyro = false
- rootpart.CFrame = aaa[2].CFrame * CFrame.new(0, 0, -4) * CFrame.Angles(0, math.pi, 0)
- keyinput:FireServer("combo", aaa[2].Parent)
- combatanim.AnimationId = "rbxassetid://" .. origcombattab[#origcombattab]
- combatanimz = humanoid:LoadAnimation(combatanim)
- combatanimz:Play()
- wait(0.6)
- break
- end
- cfrssszzz = rootpart.CFrame * CFrame.new(0, 0, -5)
- local pathd = Ray.new(rootpart.CFrame.p, (cfrssszzz.p - rootpart.CFrame.p).unit * 5)
- local Hitd, Positiond = game.Workspace:FindPartOnRay(pathd, Character)
- if Hitd then
- break
- end
- end
- disableautorotate = false
- rootpart.Velocity = Vector3.new(0, 0, 0)
- b5.maxForce = Vector3.new(0, 0, 0)
- b5.Velocity = rootpart.CFrame.lookVector * 0
- sound(rootpart, 268933900)
- enabled = false
- wstepz:Stop()
- landstepz:Play()
- gyrfly.MaxTorque = Vector3.new()
- stickgyro = false
- end
- end
- end
- if key == "s" then
- if enabled or disabled or disableplr or scooldown then
- return
- end
- if inblock then
- return
- end
- presss = presss + 1
- delay(0.2, function()
- if presss == 1 then
- presss = 0
- end
- end)
- if presss == 2 then
- scooldown = true
- delay(2, function()
- scooldown = false
- end)
- presss = 0
- if combatfolder.stamina.Value >= 30 then
- keyinput:FireServer("dashstamina")
- enabled = true
- cfr2 = rootpart.CFrame
- b5.maxForce = Vector3.new(1 / 0, 0, 1 / 0)
- b5.Velocity = cfr2.lookVector * -100
- ssidestepz:Play()
- sound(rootpart, 147722227)
- disableautorotate = true
- stickgyro = true
- for i = 1, 4 do
- local partA = rootpart
- local attachmentA = Instance.new("Attachment", partA)
- attachmentA.Position = Vector3.new(0, 0, 0)
- local partB = rootpart
- local attachmentB = Instance.new("Attachment", partB)
- attachmentB.Position = Vector3.new(0, 0, 0)
- local hingeConstraint = Instance.new("Beam", partA)
- hingeConstraint.Attachment0 = attachmentA
- hingeConstraint.Attachment1 = attachmentB
- hingeConstraint.Width0 = 0
- hingeConstraint.Width1 = 1
- hingeConstraint.LightEmission = 1
- hingeConstraint.Color = ColorSequence.new(BrickColor.White().Color)
- game.Debris:AddItem(attachmentA, 1)
- game.Debris:AddItem(attachmentB, 1)
- game.Debris:AddItem(hingeConstraint, 1)
- local tweenInfo = TweenInfo.new(0.3, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 5, false, 0)
- local tweenInfo2 = TweenInfo.new(0.7, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0, false, 0)
- local propertyGoals = {
- Position = Vector3.new(math.random(-15, 15), math.random(-15, 15), -30)
- }
- local propertyGoals2 = {Width0 = 0, Width1 = 0}
- local propertyGoals3 = {
- Width0 = 0,
- Width1 = 0,
- CurveSize0 = math.random(-7, 7),
- CurveSize1 = math.random(-7, 7)
- }
- local tween = TweenService:Create(hingeConstraint, tweenInfo, propertyGoals2)
- local tween2 = TweenService:Create(attachmentB, tweenInfo2, propertyGoals)
- local tween4 = TweenService:Create(hingeConstraint, tweenInfo2, propertyGoals3)
- tween:Play()
- tween2:Play()
- tween4:Play()
- end
- for i = 1, 30 do
- renderstepped:wait()
- cfr2 = rootpart.CFrame * CFrame.new(0, 0, 1)
- local pathd = Ray.new(rootpart.CFrame.p, (cfr2.p - rootpart.CFrame.p).unit * 5)
- local Hitd, Positiond = game.Workspace:FindPartOnRay(pathd, Character)
- if Hitd then
- break
- end
- end
- disableautorotate = false
- sound(rootpart, 268933900)
- rootpart.Velocity = Vector3.new(0, 0, 0)
- b5.maxForce = Vector3.new(0, 0, 0)
- b5.Velocity = cfr2.lookVector * 0
- enabled = false
- gyrfly.MaxTorque = Vector3.new()
- landstepz:Play()
- ssidestepz:Stop()
- stickgyro = false
- end
- end
- end
- if key == "q" then
- if enabled or disabled or disableplr or qcooldown then
- return
- end
- if combatfolder.stamina.Value >= 30 then
- keyinput:FireServer("dashstamina")
- enabled = true
- qcooldown = true
- delay(2, function()
- qcooldown = false
- end)
- cfr2 = rootpart.CFrame * CFrame.Angles(0, math.pi / 2, 0)
- b5.maxForce = Vector3.new(1 / 0, 0, 1 / 0)
- b5.Velocity = cfr2.lookVector * 100
- asidestepz:Play()
- sound(rootpart, 147722227)
- disableautorotate = true
- stickgyro = true
- for i = 1, 4 do
- local partA = rootpart
- local attachmentA = Instance.new("Attachment", partA)
- attachmentA.Position = Vector3.new(0, 0, 0)
- local partB = rootpart
- local attachmentB = Instance.new("Attachment", partB)
- attachmentB.Position = Vector3.new(0, 0, 0)
- local hingeConstraint = Instance.new("Beam", partA)
- hingeConstraint.Attachment0 = attachmentA
- hingeConstraint.Attachment1 = attachmentB
- hingeConstraint.Width0 = 0
- hingeConstraint.Width1 = 1
- hingeConstraint.LightEmission = 1
- hingeConstraint.Color = ColorSequence.new(BrickColor.White().Color)
- game.Debris:AddItem(attachmentA, 1)
- game.Debris:AddItem(attachmentB, 1)
- game.Debris:AddItem(hingeConstraint, 1)
- local tweenInfo = TweenInfo.new(0.3, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 5, false, 0)
- local tweenInfo2 = TweenInfo.new(0.7, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0, false, 0)
- local propertyGoals = {
- Position = Vector3.new(30, math.random(-15, 15), math.random(-15, 15))
- }
- local propertyGoals2 = {Width0 = 0, Width1 = 0}
- local propertyGoals3 = {
- Width0 = 0,
- Width1 = 0,
- CurveSize0 = math.random(-7, 7),
- CurveSize1 = math.random(-7, 7)
- }
- local tween = TweenService:Create(hingeConstraint, tweenInfo, propertyGoals2)
- local tween2 = TweenService:Create(attachmentB, tweenInfo2, propertyGoals)
- local tween4 = TweenService:Create(hingeConstraint, tweenInfo2, propertyGoals3)
- tween:Play()
- tween2:Play()
- tween4:Play()
- end
- for i = 1, 30 do
- renderstepped:wait()
- cfr2 = rootpart.CFrame * CFrame.new(-1, 0, 0)
- local pathd = Ray.new(rootpart.CFrame.p, (cfr2.p - rootpart.CFrame.p).unit * 5)
- local Hitd, Positiond = game.Workspace:FindPartOnRay(pathd, Character)
- if Hitd then
- break
- end
- end
- disableautorotate = false
- sound(rootpart, 268933900)
- rootpart.Velocity = Vector3.new(0, 0, 0)
- b5.maxForce = Vector3.new(0, 0, 0)
- b5.Velocity = cfr2.lookVector * 0
- enabled = false
- gyrfly.MaxTorque = Vector3.new()
- stickgyro = false
- end
- end
- if key == "e" then
- if enabled or disabled or disableplr or ecooldown then
- return
- end
- if combatfolder.stamina.Value >= 30 then
- keyinput:FireServer("dashstamina")
- enabled = true
- ecooldown = true
- delay(2, function()
- ecooldown = false
- end)
- sound(rootpart, 147722227)
- cfr2 = rootpart.CFrame * CFrame.Angles(0, -math.pi / 2, 0)
- b5.maxForce = Vector3.new(1 / 0, 0, 1 / 0)
- b5.Velocity = cfr2.lookVector * 100
- dsidestepz:Play()
- stickgyro = true
- disableautorotate = true
- for i = 1, 4 do
- local partA = rootpart
- local attachmentA = Instance.new("Attachment", partA)
- attachmentA.Position = Vector3.new(0, 0, 0)
- local partB = rootpart
- local attachmentB = Instance.new("Attachment", partB)
- attachmentB.Position = Vector3.new(0, 0, 0)
- local hingeConstraint = Instance.new("Beam", partA)
- hingeConstraint.Attachment0 = attachmentA
- hingeConstraint.Attachment1 = attachmentB
- hingeConstraint.Width0 = 0
- hingeConstraint.Width1 = 1
- hingeConstraint.LightEmission = 1
- hingeConstraint.Color = ColorSequence.new(BrickColor.White().Color)
- game.Debris:AddItem(attachmentA, 1)
- game.Debris:AddItem(attachmentB, 1)
- game.Debris:AddItem(hingeConstraint, 1)
- local tweenInfo = TweenInfo.new(0.3, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 5, false, 0)
- local tweenInfo2 = TweenInfo.new(0.7, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0, false, 0)
- local propertyGoals = {
- Position = Vector3.new(-30, math.random(-15, 15), math.random(-15, 15))
- }
- local propertyGoals2 = {Width0 = 0, Width1 = 0}
- local propertyGoals3 = {
- Width0 = 0,
- Width1 = 0,
- CurveSize0 = math.random(-7, 7),
- CurveSize1 = math.random(-7, 7)
- }
- local tween = TweenService:Create(hingeConstraint, tweenInfo, propertyGoals2)
- local tween2 = TweenService:Create(attachmentB, tweenInfo2, propertyGoals)
- local tween4 = TweenService:Create(hingeConstraint, tweenInfo2, propertyGoals3)
- tween:Play()
- tween2:Play()
- tween4:Play()
- end
- for i = 1, 30 do
- renderstepped:wait()
- cfr2 = rootpart.CFrame * CFrame.new(1, 0, 0)
- local pathd = Ray.new(rootpart.CFrame.p, (cfr2.p - rootpart.CFrame.p).unit * 5)
- local Hitd, Positiond = game.Workspace:FindPartOnRay(pathd, Character)
- if Hitd then
- break
- end
- end
- disableautorotate = false
- rootpart.Velocity = Vector3.new(0, 0, 0)
- b5.maxForce = Vector3.new(0, 0, 0)
- sound(rootpart, 268933900)
- b5.Velocity = cfr2.lookVector * 0
- enabled = false
- gyrfly.MaxTorque = Vector3.new()
- stickgyro = false
- end
- end
- if key == "0" then
- chakrarun = false
- updateanim()
- end
- if key == "v" then
- if flash then
- flash = false
- if wallclimb then
- wallclimb = false
- canclimb = false
- gyrfly.maxTorque = Vector3.new(0, 0, 0)
- gyrfly.P = origp
- gyrfly.D = origd
- b5.maxForce = Vector3.new(0, 0, 0)
- rootpart.CFrame = CFrame.new(rootpart.Position.X, rootpart.Position.Y, rootpart.Position.Z)
- aaaas = workspace.Camera.CFrame * CFrame.new(0, 0, -400)
- rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaaas.p * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.Y, 0)
- humanoid.Jump = true
- humanoid.PlatformStand = false
- walkanimanim:Stop()
- rootpart.Velocity = rootpart.Velocity + Vector3.new(0, 100, 0)
- end
- keyinput:FireServer("walkon", flash)
- return
- end
- flash = true
- keyinput:FireServer("walkon", flash)
- end
- if (key == " " or key == "q" or key == "e") and wallclimb then
- wallclimb = false
- canclimb = false
- gyrfly.maxTorque = Vector3.new(0, 0, 0)
- gyrfly.P = origp
- gyrfly.D = origd
- b5.maxForce = Vector3.new(0, 0, 0)
- rootpart.CFrame = CFrame.new(rootpart.Position.X, rootpart.Position.Y, rootpart.Position.Z)
- aaaas = workspace.Camera.CFrame * CFrame.new(0, 0, -400)
- rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaaas.p * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.Y, 0)
- humanoid.Jump = true
- humanoid.PlatformStand = false
- walkanimanim:Stop()
- rootpart.Velocity = rootpart.Velocity + Vector3.new(0, 100, 0)
- end
- if enabled or holddown then
- return
- end
- if key == "c" then
- if delaycharge then
- return
- end
- delaycharge = true
- delay(0.3, function()
- delaycharge = false
- end)
- chargeanimz:Stop()
- charge = false
- keyinput:FireServer("charge", charge)
- end
- if key == "z" then
- if delaycharge then
- return
- end
- delaycharge = true
- delay(0.3, function()
- delaycharge = false
- end)
- chargeanimz:Stop()
- charge2 = false
- keyinput:FireServer("mode", charge2)
- end
- if key == " " then
- goingup = false
- end
- if key == "z" then
- goingdown = false
- end
- if key == "x" then
- end
- if key == "c" then
- slidespeed = 0
- end
- end
- mouse.KeyUp:connect(function(key)
- kufunction(key)
- end)
- canclickagain = false
- nosz = false
- holddown = false
- fire = false
- if changehud then
- gui.Menu3.mobile.Visible = true
- UserInputService.JumpRequest:connect(function()
- kdfunction(" ")
- end)
- lockguis = false
- gui.Menu3.mobile.lock.MouseButton1Down:connect(function()
- if lockguis then
- gui.Menu3.mobile.lock.ImageColor3 = BrickColor.White().Color
- for _, v in pairs(gui.Menu3.mobile:GetChildren()) do
- if not v:IsA("ImageButton") or v.Name == "lock" then
- else
- v.Active = true
- end
- end
- lockguis = false
- return
- end
- gui.Menu3.mobile.lock.ImageColor3 = BrickColor.Red().Color
- for _, v in pairs(gui.Menu3.mobile:GetChildren()) do
- if not v:IsA("ImageButton") or v.Name == "lock" then
- else
- v.Active = false
- end
- end
- lockguis = true
- end)
- gui.Menu3.mobile.Left.MouseButton1Down:connect(function()
- kdfunction("q")
- end)
- gui.Menu3.mobile.Left.MouseButton1Up:connect(function()
- kufunction("q")
- end)
- gui.Menu3.mobile.Right.MouseButton1Down:connect(function()
- kdfunction("e")
- end)
- gui.Menu3.mobile.Right.MouseButton1Up:connect(function()
- kufunction("e")
- end)
- gui.Menu3.mobile.Top.MouseButton1Down:connect(function()
- kdfunction("w")
- end)
- gui.Menu3.mobile.Top.MouseButton1Up:connect(function()
- kufunction("w")
- end)
- gui.Menu3.mobile.Shield.MouseButton1Down:connect(function()
- kdfunction("block")
- end)
- gui.Menu3.mobile.Shield.MouseButton1Up:connect(function()
- kufunction("block")
- end)
- gui.Menu3.mobile.clon.MouseButton1Up:connect(function()
- kdfunction("b")
- end)
- gui.Menu3.mobile.clon.MouseButton1Up:connect(function()
- kufunction("b")
- end)
- gui.Menu3.mobile.chakra.MouseButton1Down:connect(function()
- kdfunction("c")
- end)
- gui.Menu3.mobile.chakra.MouseButton1Up:connect(function()
- kufunction("c")
- end)
- gui.Menu3.mobile.chakrafoot.MouseButton1Down:connect(function()
- kdfunction("v")
- end)
- gui.Menu3.mobile.chakrafoot.MouseButton1Up:connect(function()
- kufunction("v")
- end)
- gui.Menu3.mobile.mode.MouseButton1Down:connect(function()
- kdfunction("z")
- end)
- gui.Menu3.mobile.mode.MouseButton1Up:connect(function()
- kufunction("z")
- end)
- gui.Menu3.mobile.punch1.MouseButton1Down:connect(function()
- kdfunction("clickl")
- end)
- gui.Menu3.mobile.punch2.MouseButton1Down:connect(function()
- kdfunction("clickr")
- end)
- gui.Menu3.mobile.punch2.MouseButton1Up:connect(function()
- kdfunction("clickrup")
- end)
- getrun = false
- gui.Menu3.mobile.run.MouseButton1Up:connect(function()
- if getrun then
- getrun = false
- kufunction("0")
- return
- end
- getrun = true
- kdfunction("0")
- end)
- for _, v in pairs(gui.Menu3:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseButton1Down:connect(function()
- if v.Name == "key1" then
- kdfunction("r")
- elseif v.Name == "key2" then
- kdfunction("t")
- elseif v.Name == "key3" then
- kdfunction("y")
- elseif v.Name == "key4" then
- kdfunction("f")
- elseif v.Name == "key5" then
- kdfunction("g")
- elseif v.Name == "key6" then
- kdfunction("h")
- elseif v.Name == "key7" then
- kdfunction("1")
- elseif v.Name == "key8" then
- kdfunction("2")
- elseif v.Name == "key9" then
- kdfunction("3")
- elseif v.Name == "clickmenu" then
- end
- end)
- end
- end
- end
- if changehud then
- else
- mouse.Button1Up:connect(function()
- holddown = false
- apos = mousehit()
- keyinput:FireServer("mouse", apos)
- keyinput:FireServer("holddown", holddown)
- if humanoid.AutoRotate == false then
- humanoid.AutoRotate = true
- end
- if currentselect == 0 and equipsword and weptyp == "gun" then
- abcanimanim:Stop()
- end
- end)
- mouse.Button2Down:connect(function()
- if inbuilding then
- return
- end
- if changehud then
- return
- end
- if nosz then
- return
- end
- if fire or canclickagain then
- return
- end
- if enabled or disableplr or disabled or combatfolder.stunplayer.Value or combatfolder.down.Value or inship then
- return
- end
- kdfunction("clickr")
- end)
- mouse.Button2Up:connect(function()
- kdfunction("clickrup")
- end)
- mouse.Button1Down:connect(function()
- if inbuilding then
- return
- end
- charff = mouse.Target
- if charff then
- if charff.Name == "enter" then
- return
- end
- headtye = charff.Parent:FindFirstChild("Head")
- rptye = charff.Parent:FindFirstChild("HumanoidRootPart")
- if charff.Name == "leader" then
- return
- end
- if charff.Parent:FindFirstChild("quest") then
- return
- end
- end
- holddown = true
- keyinput:FireServer("holddown", holddown)
- if currentselect == 0 then
- kdfunction("clickl")
- if equipsword then
- end
- else
- apos = mousehit()
- keyinput:FireServer("mouse", apos)
- keyinput:FireServer("firepower", currentselect)
- currentselect = 0
- locategui()
- end
- end)
- end
- if changehud then
- mouse.Button1Down:connect(function()
- if inbuilding then
- return
- end
- charff = mouse.Target
- if charff then
- if charff.Name == "enter" then
- return
- end
- headtye = charff.Parent:FindFirstChild("Head")
- rptye = charff.Parent:FindFirstChild("HumanoidRootPart")
- if charff.Name == "leader" then
- return
- end
- if charff.Parent:FindFirstChild("quest") then
- return
- end
- end
- holddown = true
- keyinput:FireServer("holddown", holddown)
- if currentselect == 0 then
- if equipsword then
- end
- else
- cfrz = rootpart.CFrame * CFrame.new(0, 0, -50)
- keyinput:FireServer("mouse", cfrz)
- keyinput:FireServer("firepower", currentselect)
- currentselect = 0
- locategui()
- end
- end)
- tool.Parent = script
- wait()
- tool.Parent = Character
- mouse.Button1Up:connect(function()
- holddown = false
- keyinput:FireServer("holddown", holddown)
- if humanoid.AutoRotate == false then
- humanoid.AutoRotate = true
- end
- if currentselect == 0 and equipsword and weptyp == "gun" then
- abcanimanim:Stop()
- end
- end)
- end
- aaa = Instance.new("Sound", script)
- aaa.SoundId = "rbxassetid://172886049"
- aaa.Volume = 0.2
- aaa.Looped = true
- aaa:Play()
- goup = false
- onoff = true
- flyanim = Instance.new("Animation")
- flyanim.AnimationId = "rbxassetid://1125408344"
- flyanimanim = humanoid:LoadAnimation(flyanim)
- weaponidl = Instance.new("Animation")
- weaponidl.AnimationId = "rbxassetid://" .. 0
- weaponidlz = humanoid:LoadAnimation(weaponidl)
- fakerp = rootpart:clone()
- fakerp:ClearAllChildren()
- fakerp.Name = "fakerp"
- fakerp.Parent = rootpart
- newrp = Instance.new("Motor6D", fakerp)
- newrp.C1 = CFrame.new(-1.1920929E-7, 0.150000036, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- newrp.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- newrp.Part0 = rootpart
- newrp.Part1 = fakerp
- canclimb = false
- rootC0 = newrp.C0
- rootC1 = newrp.C1
- wallclimb = false
- walkonwall = rs.walkonwall:clone()
- walkonwall.rp.CFrame = CFrame.new(rootpart.CFrame.X, rootpart.CFrame.Y, rootpart.CFrame.Z)
- walkonwall.Parent = Character
- humanoid.Changed:connect(function()
- if disableplr or sliding or inmainpower or combatfolder.down.Value or underwater or inchat or inship then
- humanoid.Jump = false
- end
- if disabled or combatfolder.stunplayer.Value then
- humanoid.Jump = false
- humanoid.AutoRotate = false
- end
- end)
- combatfolder.stunplayer.Changed:connect(function(aa)
- if aa then
- humanoid.AutoRotate = false
- else
- humanoid.AutoRotate = true
- docombo = false
- end
- end)
- hud = gui.Menu3
- hud.Visible = true
- inchat = false
- chatpos = Vector3.new()
- chatnpc = nil
- dontdomission = false
- sendtrade = false
- currentnumtex = 0
- plrd = nil
- inbuilding = false
- inteleport = false
- entertheme = Instance.new("Sound")
- entertheme.Parent = script
- entertheme.SoundId = "rbxassetid://"
- entertheme.Looped = true
- entertheme.Volume = 0.5
- mouse.Button1Down:connect(function()
- if inteleport then
- return
- end
- charff = mouse.Target
- if charff then
- if charff.Name == "enter" then
- if not charff:FindFirstChild("gamepass") or Player:FindFirstChild(charff.gamepass.Value) then
- else
- sound(script, 140910216, 3)
- inmenu = true
- gui.menu.Visible = true
- closeallframes()
- menu.rob.Visible = true
- sound(script, 154020823, 1)
- keyinput:FireServer("mouselock", false)
- return
- end
- mag = (Character.HumanoidRootPart.CFrame.p - charff.CFrame.p).magnitude
- if mag < 15 then
- inbuilding = true
- inteleport = true
- sound(script, 858508159)
- entertheme:Stop()
- entertheme.SoundId = "rbxassetid://" .. charff.song.Value
- entertheme.Volume = 0.5
- entertheme:Play()
- blindeffect(2)
- wait(0.2)
- if flash then
- flash = false
- if wallclimb then
- wallclimb = false
- canclimb = false
- gyrfly.maxTorque = Vector3.new(0, 0, 0)
- gyrfly.P = origp
- gyrfly.D = origd
- b5.maxForce = Vector3.new(0, 0, 0)
- rootpart.CFrame = CFrame.new(rootpart.Position.X, rootpart.Position.Y, rootpart.Position.Z)
- aaaas = workspace.Camera.CFrame * CFrame.new(0, 0, -400)
- rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaaas.p * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.Y, 0)
- humanoid.Jump = true
- humanoid.PlatformStand = false
- walkanimanim:Stop()
- rootpart.Velocity = Vector3.new(0, 0, 0)
- end
- keyinput:FireServer("walkon", flash)
- end
- rootpart.CFrame = workspace.enterable:FindFirstChild(charff.whereto.Value).spawn.CFrame
- if charff:FindFirstChild("leave") then
- entertheme:Stop()
- wait(0.5)
- inbuilding = false
- end
- inteleport = false
- return
- end
- end
- headtye = charff.Parent:FindFirstChild("Head")
- rptye = charff.Parent:FindFirstChild("HumanoidRootPart")
- if charff.Parent:FindFirstChild("quest") then
- headtye = charff.Parent:FindFirstChild("Head")
- rptye = charff.Parent:FindFirstChild("HumanoidRootPart")
- mainnpc = charff.Parent:FindFirstChild("quest")
- dontdothis = charff.Parent:FindFirstChild("dontclick")
- if dontdothis then
- return
- end
- if headtye and rptye and mainnpc then
- sendtrade = false
- mag = (Character.HumanoidRootPart.CFrame.p - charff.CFrame.p).magnitude
- if mag < 9 then
- chatpos = headtye.Position
- chatnpc = mainnpc
- dontdomission = false
- endchat = false
- if chatnpc:FindFirstChild("quest") then
- loadtext.Value = mainnpc["dia" .. math.random(1, 3)].Value
- else
- loadtext.Value = mainnpc.dia1.Value
- end
- print("TALKING")
- currentnumtex = 1
- inchat = true
- currentcfr = chatnpc.Parent.HumanoidRootPart.CFrame
- keyinput:FireServer("mouselock", false)
- while inchat do
- renderstepped:wait()
- magwss = (rootpart.Position - chatnpc.Parent.HumanoidRootPart.Position).magnitude
- chatnpc.Parent.HumanoidRootPart.CFrame = CFrame.new(currentcfr.p * Vector3.new(1, 0, 1), rootpart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, currentcfr.Y, 0)
- if 9 < magwss then
- inchat = false
- chatgui.Visible = false
- loadtext.Value = ""
- sayfirstext = false
- chatgui.HB.int.Visible = true
- end
- end
- keyinput:FireServer("mouselock", true)
- end
- return
- end
- end
- end
- end)
- loadtext = Instance.new("StringValue")
- currenttext = nil
- breaktext = false
- talkin = {
- "rbxassetid://1591m50581",
- "rbxassetid://1591750826",
- "rbxassetid://1591751091",
- "rbxassetid://1591751380",
- "rbxassetid://1591751571"
- }
- loadtext.Changed:connect(function(aas)
- chatgui.HB.endit.Visible = false
- chatgui.HB.int.Visible = false
- origmouthtexture = nil
- if storymode and chatnpc then
- origmouthtextur = chatnpc.Head.mouth.Texture
- end
- length = string.len(aas)
- intype = true
- for var = 1, length do
- wait()
- if intype == false then
- typin.Text = ""
- break
- end
- typin.Text = string.sub(aas, 1, var)
- if origmouthtextur and string.sub(aas, var, var) == " " then
- chatnpc.Head.mouth.Texture = talkin[math.random(1, #talkin)]
- else
- end
- sound(rootpart, 147982968)
- if chatgui.Visible == false then
- break
- end
- end
- if storymode then
- chatnpc.Head.mouth.Texture = origmouthtextur
- end
- chatgui.HB.endit.Visible = true
- if endchat then
- else
- chatgui.HB.int.Visible = true
- end
- intype = false
- end)
- function endchatz()
- if storymode then
- return
- end
- sound(rootpart, 1313904913)
- inchat = false
- chatgui.Visible = false
- loadtext.Value = ""
- sayfirstext = false
- chatgui.HB.int.Visible = true
- endchat = false
- loadtext.Value = ""
- keyinput:FireServer("declinetrade")
- end
- function chatintz()
- if storymode then
- return
- end
- if endchat then
- return
- end
- if dontdomission then
- return
- end
- sound(rootpart, 915576050)
- currentnumtex = currentnumtex + 1
- aa = chatnpc:GetChildren()
- aaa = chatnpc:FindFirstChild("dia" .. currentnumtex)
- if chatnpc:FindFirstChild("quest") then
- aaa = nil
- if chatnpc.Parent.Head.showtarget.Enabled then
- else
- endchat = true
- loadtext.Value = "Come back tommorow, " .. Player.Name .. " for another mission!"
- return
- end
- if Player.mission:FindFirstChild("mission") and Player.mission.mission.currentmiss.Value == chatnpc.Parent.Name then
- endchat = true
- loadtext.Value = "You haven't completed my mission."
- return
- end
- end
- if aaa then
- loadtext.Value = aaa.Value
- else
- inchat = false
- chatgui.Visible = false
- loadtext.Value = ""
- sayfirstext = false
- chatgui.HB.int.Visible = true
- endchat = false
- if chatnpc:FindFirstChild("shop") then
- gui.Menu3.Visible = false
- elseif chatnpc:FindFirstChild("quest") then
- if chatnpc.Parent.Head.showtarget.Enabled then
- effectz:FireServer("takemission", chatnpc)
- else
- loadtext.Value = "Come back tommorow!"
- return
- end
- elseif chatnpc:FindFirstChild("pres") then
- keyinput:FireServer("pres")
- elseif chatnpc:FindFirstChild("exp") then
- elseif chatnpc:FindFirstChild("place") then
- keyinput:FireServer("save")
- wait(0.5)
- game:GetService("TeleportService"):Teleport(chatnpc:FindFirstChild("place").Value)
- end
- end
- end
- chatgui = gui:WaitForChild("chat")
- arrow = chatgui.arrow
- cam = workspace.Camera
- typin = chatgui.HB.type
- intype = false
- chatgui.HB.endit.MouseButton1Down:connect(function()
- endchatz()
- end)
- endchat = false
- sayfirstext = false
- chatgui.HB.int.MouseButton1Down:connect(function()
- chatintz()
- end)
- tradedecsion = false
- invitor = nil
- itm = rs:WaitForChild("item2"):Clone()
- currentradegui = nil
- allitems = rs.allitems
- clickonce = false
- skill = nil
- currentitm = nil
- currentitm2 = nil
- combatselect = ""
- powerselect = ""
- function updateguis()
- end
- treejump = Instance.new("Animation")
- treejump.AnimationId = "rbxassetid://" .. 1491957276
- treejumpz = humanoid:LoadAnimation(treejump)
- forwardtree = Instance.new("Animation")
- forwardtree.AnimationId = "rbxassetid://" .. 1492086277
- forwardtreez = humanoid:LoadAnimation(forwardtree)
- treeidlz = Instance.new("Animation")
- treeidlz.AnimationId = "rbxassetid://" .. 1491971501
- treeidlzz = humanoid:LoadAnimation(treeidlz)
- idlanim = Instance.new("Animation")
- idlanim.AnimationId = "rbxassetid://" .. 1100326557
- idlanimz = humanoid:LoadAnimation(idlanim)
- idlanimz:Play()
- chargeanim = Instance.new("Animation")
- chargeanim.AnimationId = "rbxassetid://" .. 1289783805
- chargeanimz = humanoid:LoadAnimation(chargeanim)
- hangonwallz = Instance.new("Animation")
- hangonwallz.AnimationId = "rbxassetid://" .. 1169075696
- hangonwallanim = humanoid:LoadAnimation(hangonwallz)
- grapplepow = Instance.new("Animation")
- grapplepow.AnimationId = "rbxassetid://" .. 1168899599
- grapplepowanim = humanoid:LoadAnimation(grapplepow)
- grapplefly = Instance.new("Animation")
- grapplefly.AnimationId = "rbxassetid://" .. 1169043784
- grappleflyanim = humanoid:LoadAnimation(grapplefly)
- walkanim = Instance.new("Animation")
- walkanim.AnimationId = "rbxassetid://" .. 1167012846
- walkanimanim = humanoid:LoadAnimation(walkanim)
- dbljumpanim = Instance.new("Animation")
- dbljumpanim.AnimationId = "rbxassetid://" .. 1124864132
- dbljumpanimanim = humanoid:LoadAnimation(dbljumpanim)
- fallanim = Instance.new("Animation")
- fallanim.AnimationId = "rbxassetid://" .. 1125022591
- fallanims = humanoid:LoadAnimation(fallanim)
- landanim = Instance.new("Animation")
- landanim.AnimationId = "rbxassetid://" .. 1100856762
- landanims = humanoid:LoadAnimation(landanim)
- runanim = Instance.new("Animation")
- runanim.AnimationId = "rbxassetid://" .. 1124601840
- runanimanim = humanoid:LoadAnimation(runanim)
- chakrarunz = Instance.new("Animation")
- chakrarunz.AnimationId = "rbxassetid://" .. 1289880031
- chakrarunanim = humanoid:LoadAnimation(chakrarunz)
- jumpanim = Instance.new("Animation")
- jumpanim.AnimationId = "rbxassetid://" .. 1124611885
- jumpanimanim = humanoid:LoadAnimation(jumpanim)
- flymov = Instance.new("Animation")
- flymov.AnimationId = "rbxassetid://" .. 1125418279
- flymovanim = humanoid:LoadAnimation(flymov)
- flymov2 = Instance.new("Animation")
- flymov2.AnimationId = "rbxassetid://" .. 1125424428
- flymov2anim = humanoid:LoadAnimation(flymov2)
- goinupz = Instance.new("Animation")
- goinupz.AnimationId = "rbxassetid://" .. 1125460295
- goinupzanim = humanoid:LoadAnimation(goinupz)
- goindz = Instance.new("Animation")
- goindz.AnimationId = "rbxassetid://" .. 1125466382
- goindzanim = humanoid:LoadAnimation(goindz)
- counter = Instance.new("Animation")
- counter.AnimationId = "rbxassetid://" .. 1149363923
- counteranim = humanoid:LoadAnimation(counter)
- freefalling = Instance.new("Animation")
- freefalling.AnimationId = "rbxassetid://" .. 1137105878
- freefallinganim = humanoid:LoadAnimation(freefalling)
- quickland = Instance.new("Animation")
- quickland.AnimationId = "rbxassetid://" .. 1137175543
- quicklandanim = humanoid:LoadAnimation(quickland)
- archeranim = Instance.new("Animation")
- archeranim.AnimationId = "rbxassetid://" .. 1140123447
- archeranimanim = humanoid:LoadAnimation(archeranim)
- abcanim = Instance.new("Animation")
- abcanim.AnimationId = "rbxassetid://" .. 0
- abcanimanim = humanoid:LoadAnimation(abcanim)
- characterpoweranim = Instance.new("Animation")
- characterpoweranim.AnimationId = "rbxassetid://" .. 0
- characterpoweranimanim = humanoid:LoadAnimation(characterpoweranim)
- anim323 = Instance.new("Animation")
- anim323.AnimationId = "rbxassetid://" .. 1181695297
- swimming = humanoid:LoadAnimation(anim323)
- anim323 = Instance.new("Animation")
- anim323.AnimationId = "rbxassetid://" .. 1181655119
- swimmingidl = humanoid:LoadAnimation(anim323)
- underwater = false
- humanoid.StateChanged:connect(function(aaa)
- if aaa == Enum.HumanoidStateType.Jumping and distancegrd > 100 and freefall == false then
- freefall = true
- freefallinganim:Play()
- end
- if aaa == Enum.HumanoidStateType.Landed then
- if freefallinganim.IsPlaying then
- quicklandanim:Play()
- end
- freefall = false
- freefallinganim:Stop()
- updateanim()
- end
- if aaa == Enum.HumanoidStateType.Landed then
- walkanimanim:Stop()
- runanimanim:Stop()
- if fallanims.IsPlaying then
- landanims:Play()
- fallanims:Stop()
- end
- updateanim()
- end
- end)
- jumpin = false
- humanoid.Running:connect(function(speed)
- updateanim(speed)
- end)
- updateanim()
- freefall = false
- humanoid.Jumping:connect(function(speed)
- jumpanimanim:Play()
- walkanimanim:Stop()
- runanimanim:Stop()
- end)
- target = rs.target:Clone()
- target.Parent = Player.PlayerGui
- missiontarg = rs.targetmiss:Clone()
- missiontarg.Parent = Player.PlayerGui
- missiontarg2 = rs.targetmiss:Clone()
- missiontarg2.Parent = Player.PlayerGui
- missiontarg3 = rs.targetmiss:Clone()
- missiontarg3.Parent = Player.PlayerGui
- missiontarg4 = rs.targetmiss:Clone()
- missiontarg4.Parent = Player.PlayerGui
- currentmission = nil
- distancegrd = 0
- hangonwall = false
- local GameSettings = UserSettings().GameSettings
- dx, dy = 0, 0
- m2 = 0
- ddd = 0
- ggg = 0
- fff = 0
- hhh = 0
- turnship = 0
- local function MouseMoved(Input)
- if Input.UserInputType == Enum.UserInputType.MouseMovement then
- local dx, dy = Input.Delta.x * 0.1, Input.Delta.y * 0.1
- local m2 = dx * dx + dy * dy
- ddf = Character.Head.Position
- cfr = CFrame.new(ddf.X, ddf.Y, ddf.Z)
- ddd = ddd - dx * 2
- ggg = ggg - dy * 2
- fff = fff - dx * 5
- hhh = hhh - dy * 5
- if hhh >= 90 then
- hhh = 90
- end
- if hhh <= -90 then
- hhh = -90
- end
- if fff >= 90 then
- fff = 90
- end
- if fff <= -90 then
- fff = -90
- end
- end
- end
- UserInputService.InputChanged:connect(MouseMoved)
- grounded = false
- combat = Character:WaitForChild("combat")
- newwaterpart = Instance.new("Part")
- newwaterpart.Size = Vector3.new(500, 7, 500)
- newwaterpart.Anchored = true
- newwaterpart.CanCollide = false
- newwaterpart.Transparency = 1
- newwater = Instance.new("Texture")
- newwater.Face = "Top"
- newwater.Parent = newwaterpart
- newwater.StudsPerTileU = 50
- newwater.StudsPerTileV = 50
- newwater.Transparency = 0.8
- newwater.Texture = "http://www.roblox.com/asset/?id=18361792"
- newwaterpart.Parent = Character
- newwaterpart.CanCollide = false
- upptertorsooriug = CFrame.new(-5.96046448E-8, -0.450000018, 1.1920929E-7, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- upptertorsooriug0 = CFrame.new(-1.1920929E-7, 0.550000072, 7.64462551E-20, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- upptertorso = Character.UpperTorso.Waist
- upptertorso.C0 = upptertorsooriug0
- upptertorso.C1 = upptertorsooriug
- local asin = math.asin
- Neck = Character.Head.Neck
- local CFNew, CFAng = CFrame.new, CFrame.Angles
- local YOffset = Neck.C0.Y
- origc0 = Neck.C0
- gui:WaitForChild("comboframe")
- charinfo = Character.Head:WaitForChild("charinfo")
- charinfo.BarHealth.Visible = false
- Player.PlayerScripts.ControlScript.Disabled = true
- wait()
- Player.PlayerScripts.ControlScript.Disabled = false
- touchgui = nil
- offsetx, offsety = 0, 0
- if Player.PlayerGui:FindFirstChild("TouchGui") then
- touchgui = Player.PlayerGui:FindFirstChild("TouchGui").TouchControlFrame.ThumbstickFrame.StickImage
- touchframe = Player.PlayerGui:FindFirstChild("TouchGui").TouchControlFrame
- offsetx = touchgui.Position.X.Offset
- offsety = touchgui.Position.Y.Offset
- slowdownturn = true
- end
- function leveleffect()
- sound(script, 154020823, 1)
- newblind = rs.leveleffect:clone()
- newblind.Parent = gui
- newblind.level.bg.slide:TweenPosition(UDim2.new(2, 0, -0.5, 0), "Out", "Quad", 2, true)
- sound(script, 858508159, 2)
- game.Debris:AddItem(newblind, 1.5)
- end
- lastpos = rootpart.CFrame
- sharinganfolder = Instance.new("Folder")
- sharinganfolder.Parent = Player.PlayerGui
- byakuganfolder = Instance.new("Folder")
- byakuganfolder.Parent = Character
- clonegui = script.getgui:clone()
- combatfolder.currentmode.Changed:connect(function()
- sharinganfolder:ClearAllChildren()
- byakuganfolder:ClearAllChildren()
- end)
- waterwalk = script.waterwalk:Clone()
- takechakraaway = false
- canminushealth = false
- underwaterblur = Instance.new("BlurEffect")
- underwaterblur.Name = "menublur"
- underwaterz = Instance.new("Sound")
- underwaterz.Parent = script
- underwaterz.SoundId = "rbxassetid://130802432"
- underwaterz.Looped = true
- underwaterz:Stop()
- getorigambient = game.Lighting.Ambient
- naturalactiv = false
- makenoise = false
- wait()
- currentpos = Instance.new("Sound")
- currentpos.Parent = script
- currentpos.SoundId = "rbxassetid://"
- currentpos.Looped = true
- nearpos = Instance.new("StringValue")
- currentmusic = 0
- canbevisible = 0
- nearpos.Changed:connect(function()
- gui.nearpos.Visible = true
- gui.nearpos.where.Text = nearpos.Value
- canbevisible = 10
- sound(script, 246930031, 4)
- currentpos:Stop()
- currentpos.SoundId = "rbxassetid://" .. currentmusic
- currentpos.Looped = true
- end)
- local closestspawn = function(rp2)
- local closestDist2 = 400
- local closestPlayer2
- for index, playerz in ipairs(workspace.posnames:GetChildren()) do
- if closestDist2 > (playerz.Position - rp2.HumanoidRootPart.Position).magnitude then
- closestPlayer2 = playerz
- closestDist2 = (playerz.Position - rp2.HumanoidRootPart.Position).magnitude
- end
- end
- doubltal2 = closestPlayer2
- return doubltal2
- end
- headturn = true
- gettim = workspace.summon:FindFirstChild("globaltime")
- RunService.RenderStepped:connect(function()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement