Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Player = game.Players.LocalPlayer
- local ChatService = game:GetService("Chat")
- repeat
- wait()
- until _G["26"]
- GuiModules = require(game.ReplicatedStorage.GuiModules.GuiFunctions)
- Explosion = require(game.ReplicatedStorage.MiscModules.ExplosionsModule)
- Admin = require(game.ReplicatedStorage.MiscModules.Admin)
- MainGuiUpdate = require(game.ReplicatedStorage.GuiModules.MainGuiUpdate)
- local TableFunction = require(game.ReplicatedStorage.TableFunctions.TableFunctions)
- local Guild2 = TableFunction.GuildInfo(Player)
- local Level = game.Workspace.Main.CheckStat:InvokeServer("Level", Player.Name)
- local Stamina = game.Workspace.Main.CheckStat:InvokeServer("Stamina", Player.Name)
- Player.LocalData.MaxStamina.Value = 500 + Stamina * 50
- Player.LocalData.Stamina.Value = Player.LocalData.MaxStamina.Value
- local HasAgile = game.Workspace.ServerEvents.CheckGamepass:InvokeServer(464265442, Player.Name)
- local HasOrigin = game.Workspace.ServerEvents.CheckGamepass:InvokeServer(462751351, Player.Name)
- if HasOrigin == false then
- Player.LocalData.MaxMagicEnergy.Value = 100 + Level * 19
- else
- Player.LocalData.MaxMagicEnergy.Value = (100 + Level * 19) * 2
- end
- Player.LocalData.MagicEnergy.Value = Player.LocalData.MaxMagicEnergy.Value
- local Leader = game.Workspace.Main.CheckParty:InvokeServer("Leader", Player.Name)
- local Defense = game.Workspace.Main.CheckStat:InvokeServer("Defense", Player.Name)
- local Level = game.Workspace.Main.CheckStat:InvokeServer("Level", Player.Name)
- Player.Character.Humanoid.MaxHealth = 100 + Defense * 125 + Level * 50
- wait(0.25)
- Player.Character.Humanoid.Health = Player.Character.Humanoid.MaxHealth
- Player.LocalData.Charging.Value = true
- Player.LocalData.Charging2.Value = true
- Player.LocalData.DamageOutput.Value = 100
- Charging = false
- FeedbackD = false
- Charging2 = false
- MCharging = false
- MCharging2 = false
- Saved = false
- Saved2 = false
- local Load = false
- local Show = false
- local ButtonKey = false
- local Run = false
- local MusicPlaying = false
- local DamageOutputD = false
- local Jump = false
- local JumpCharge = false
- local MaxLevel = require(game.ReplicatedStorage.MiscModules.DataModule).MaxLevel()
- local ContextActionService = game:GetService("ContextActionService")
- script.Parent.NpcLocal.Disabled = false
- PlayMusic = coroutine.wrap(function()
- local Setting3 = game.Workspace.Main.CheckStat:InvokeServer("Setting3", Player.Name)
- if Setting3 == "Unmute" or Setting3 == "" then
- for i, v in pairs(Player.PlayerGui:GetChildren()) do
- if v.ClassName == "Sound" then
- v:Destroy()
- end
- end
- local Music = game.ReplicatedStorage.Sounds.FairyTail
- local RandomMusic = math.random(1, #Music:GetChildren())
- local Sound = Music:FindFirstChild(RandomMusic):Clone()
- Sound.Parent = Player.PlayerGui
- game.Debris:AddItem(Sound, 120)
- Sound:Play()
- else
- for i, v in pairs(Player.PlayerGui:GetChildren()) do
- if v.ClassName == "Sound" then
- v:Destroy()
- end
- end
- end
- while wait(120) do
- local Setting3 = game.Workspace.Main.CheckStat:InvokeServer("Setting3", Player.Name)
- if Setting3 == "Unmute" or Setting3 == "" then
- for i, v in pairs(Player.PlayerGui:GetChildren()) do
- if v.ClassName == "Sound" then
- v:Destroy()
- end
- end
- local Music = game.ReplicatedStorage.Sounds.FairyTail
- local RandomMusic = math.random(1, #Music:GetChildren())
- local Sound = Music:FindFirstChild(RandomMusic):Clone()
- Sound.Parent = Player.PlayerGui
- game.Debris:AddItem(Sound, 120)
- Sound:Play()
- else
- for i, v in pairs(Player.PlayerGui:GetChildren()) do
- if v.ClassName == "Sound" then
- v:Destroy()
- end
- end
- end
- end
- end)
- Swim = coroutine.wrap(function()
- while wait() do
- if Player.Character.Torso.Position.Y <= 68 then
- if Player.Character.Torso:findFirstChild("SwimPosition") then
- Player.Character.Torso:FindFirstChild("SwimPosition"):Destroy()
- end
- local bp = Instance.new("BodyPosition", Player.Character.Torso)
- bp.Name = "SwimPosition"
- bp.maxForce = Vector3.new(0, math.huge, 0)
- Player.Character.Torso.SwimPosition.position = Vector3.new(0, 68, 0)
- if Player.LocalData.Stamina.Value < 4 then
- Player.Character.Humanoid.Health = Player.Character.Humanoid.Health - 10
- else
- Player.LocalData.Stamina.Value = Player.LocalData.Stamina.Value - 4
- end
- elseif Player.Character.Torso:findFirstChild("SwimPosition") then
- Player.Character.Torso:FindFirstChild("SwimPosition"):Destroy()
- end
- end
- end)
- function EnergyUpdate()
- local MaxEnergy = Player.LocalData.MaxMagicEnergy.Value
- local Energy = Player.LocalData.MagicEnergy.Value
- local Bar = Energy / MaxEnergy
- script.Parent.Energy.Bar:TweenSize(UDim2.new(Bar, 0, 0.5, 0), "Out", "Quad", 0.25, true)
- script.Parent.Energy.Bar2:TweenSize(UDim2.new(Bar, 0, 0.5, 0), "Out", "Quad", 0.25, true)
- local Increment = MaxEnergy - Energy
- local Scale = 255 / MaxEnergy
- script.Parent.Energy.Label.Text = "Energy: " .. Energy .. "/" .. MaxEnergy
- script.Parent.Energy.Bar.BackgroundColor3 = Color3.new(0, (Scale * Increment - 255) * -1 / 255, (Scale * Increment - 255) * -1 / 255)
- script.Parent.Energy.Bar2.BackgroundColor3 = Color3.new(0, (Scale * Increment - 255) * -1 / 255, (Scale * Increment - 255) * -1 / 255)
- end
- function EnergyUpdate2()
- if not script.Parent.Parent:FindFirstChild("PartyMember") then
- return
- end
- game.Workspace.ServerEvents.ChangePartyGui:FireServer(Player.Name, "Energy")
- local MaxEnergy = Player.LocalData.MaxMagicEnergy.Value
- local Energy = Player.LocalData.MagicEnergy.Value
- local Bar = Energy / MaxEnergy
- script.Parent.Parent:FindFirstChild("PartyMember")[Player.Name].Energy.Bar:TweenSize(UDim2.new(Bar, 0, 0.5, 0), "Out", "Quad", 0.25, true)
- script.Parent.Parent:FindFirstChild("PartyMember")[Player.Name].Energy.Bar2:TweenSize(UDim2.new(Bar, 0, 0.5, 0), "Out", "Quad", 0.25, true)
- local Increment = MaxEnergy - Energy
- local Scale = 255 / MaxEnergy
- script.Parent.Parent:FindFirstChild("PartyMember")[Player.Name].Energy.Label.Text = "Energy: " .. Energy .. "/" .. MaxEnergy
- script.Parent.Parent:FindFirstChild("PartyMember")[Player.Name].Energy.Bar.BackgroundColor3 = Color3.new(0, (Scale * Increment - 255) * -1 / 255, (Scale * Increment - 255) * -1 / 255)
- script.Parent.Parent:FindFirstChild("PartyMember")[Player.Name].Energy.Bar2.BackgroundColor3 = Color3.new(0, (Scale * Increment - 255) * -1 / 255, (Scale * Increment - 255) * -1 / 255)
- end
- function JewelsUpdate()
- local Jewels = game.Workspace.Main.CheckStat:InvokeServer("Jewels", Player.Name)
- script.Parent.Jewels.Label.Text = "Jewels: " .. Jewels
- end
- function StaminaUpdate()
- local MaxEnergy = Player.LocalData.MaxStamina.Value
- local Energy = Player.LocalData.Stamina.Value
- local Bar = Energy / MaxEnergy
- script.Parent.Stamina.Bar:TweenSize(UDim2.new(Bar, 0, 0.5, 0), "Out", "Quad", 0.25, true)
- script.Parent.Stamina.Bar2:TweenSize(UDim2.new(Bar, 0, 0.5, 0), "Out", "Quad", 0.25, true)
- local Increment = MaxEnergy - Energy
- local Scale = 255 / MaxEnergy
- script.Parent.Stamina.Label.Text = "Stamina: " .. Energy .. "/" .. MaxEnergy
- script.Parent.Stamina.Bar.BackgroundColor3 = Color3.new((Scale * Increment - 255) * -1 / 255, (Scale * Increment - 255) * -1 / 255, (Scale * Increment - 255) * -1 / 255)
- script.Parent.Stamina.Bar2.BackgroundColor3 = Color3.new((Scale * Increment - 255) * -1 / 255, (Scale * Increment - 255) * -1 / 255, (Scale * Increment - 255) * -1 / 255)
- end
- function HealthUpdate()
- local MaxHealth = Player.Character.Humanoid.MaxHealth
- local Health = math.ceil(Player.Character.Humanoid.Health)
- local Bar = Health / MaxHealth
- script.Parent.Health.Bar:TweenSize(UDim2.new(Bar, 0, 0.5, 0), "Out", "Quad", 0.25, true)
- script.Parent.Health.Bar2:TweenSize(UDim2.new(Bar, 0, 0.5, 0), "Out", "Quad", 0.25, true)
- script.Parent.Health.Label.Text = "Health: " .. Health .. "/" .. MaxHealth
- if Health >= MaxHealth * 0.5 then
- local Increment = MaxHealth - Health
- local Scale = 255 / MaxHealth * 2
- script.Parent.Health.Bar.BackgroundColor3 = Color3.new(Scale * Increment / 255, 1, 0)
- script.Parent.Health.Bar2.BackgroundColor3 = Color3.new(Scale * Increment / 255, 1, 0)
- elseif Health < MaxHealth * 0.5 then
- local Increment = MaxHealth * 0.5 - Health
- local Scale = 255 / (MaxHealth * 0.5)
- script.Parent.Health.Bar.BackgroundColor3 = Color3.new(1, (Scale * Increment - 255) * -1 / 255, 0)
- script.Parent.Health.Bar2.BackgroundColor3 = Color3.new(1, (Scale * Increment - 255) * -1 / 255, 0)
- end
- end
- function HealthUpdate2()
- if not script.Parent.Parent:FindFirstChild("PartyMember") then
- return
- end
- game.Workspace.ServerEvents.ChangePartyGui:FireServer(Player.Name, "Health")
- local MaxHealth = Player.Character.Humanoid.MaxHealth
- local Health = math.ceil(Player.Character.Humanoid.Health)
- local Bar = Health / MaxHealth
- script.Parent.Parent:FindFirstChild("PartyMember")[Player.Name].Health.Bar:TweenSize(UDim2.new(Bar, 0, 0.5, 0), "Out", "Quad", 0.25, true)
- script.Parent.Parent:FindFirstChild("PartyMember")[Player.Name].Health.Bar2:TweenSize(UDim2.new(Bar, 0, 0.5, 0), "Out", "Quad", 0.25, true)
- script.Parent.Parent:FindFirstChild("PartyMember")[Player.Name].Health.Label.Text = "Health: " .. Health .. "/" .. MaxHealth
- if Health >= MaxHealth * 0.5 then
- local Increment = MaxHealth - Health
- local Scale = 255 / MaxHealth * 2
- script.Parent.Parent:FindFirstChild("PartyMember")[Player.Name].Health.Bar.BackgroundColor3 = Color3.new(Scale * Increment / 255, 1, 0)
- script.Parent.Parent:FindFirstChild("PartyMember")[Player.Name].Health.Bar2.BackgroundColor3 = Color3.new(Scale * Increment / 255, 1, 0)
- elseif Health < MaxHealth * 0.5 then
- local Increment = MaxHealth * 0.5 - Health
- local Scale = 255 / (MaxHealth * 0.5)
- script.Parent.Parent:FindFirstChild("PartyMember")[Player.Name].Health.Bar.BackgroundColor3 = Color3.new(1, (Scale * Increment - 255) * -1 / 255, 0)
- script.Parent.Parent:FindFirstChild("PartyMember")[Player.Name].Health.Bar2.BackgroundColor3 = Color3.new(1, (Scale * Increment - 255) * -1 / 255, 0)
- end
- end
- function LevelUpdate()
- local Level = game.Workspace.Main.CheckStat:InvokeServer("Level", Player.Name)
- script.Parent.Level.Label.Text = "Level: " .. Level
- end
- function ExperienceUpdate()
- local Level = game.Workspace.Main.CheckStat:InvokeServer("Level", Player.Name)
- local Experience = game.Workspace.Main.CheckStat:InvokeServer("Experience", Player.Name)
- local MaxExperience = 10 * (Level ^ 1.05 / 2)
- script.Parent.Experience.Bar:TweenSize(UDim2.new(Experience / MaxExperience, 0, 0.5, 0), "Out", "Quad", 0.25, true)
- script.Parent.Experience.Bar2:TweenSize(UDim2.new(Experience / MaxExperience, 0, 0.5, 0), "Out", "Quad", 0.25, true)
- script.Parent.Experience.Label.Text = "[2x] Experience: " .. Experience .. "/" .. math.ceil(MaxExperience)
- local Increment = MaxExperience - Experience
- local Scale = 255 / MaxExperience
- script.Parent.Experience.Bar.BackgroundColor3 = Color3.new((Scale * Increment - 255) * -1 / 255, (Scale * Increment - 255) * -1 / 255, 0)
- script.Parent.Experience.Bar2.BackgroundColor3 = Color3.new((Scale * Increment - 255) * -1 / 255, (Scale * Increment - 255) * -1 / 255, 0)
- end
- function AutoCharge()
- if Player.LocalData.Charging.Value ~= true then
- return
- end
- Charging = true
- while Player.LocalData.MagicEnergy.Value < Player.LocalData.MaxMagicEnergy.Value do
- if Player.LocalData.MagicEnergy.Value <= 0 then
- Player.LocalData.MagicEnergy.Value = 0
- end
- Player.LocalData.MagicEnergy.Value = Player.LocalData.MagicEnergy.Value + Player.LocalData.MaxMagicEnergy.Value * 0.012
- if Player.LocalData.MagicEnergy.Value >= Player.LocalData.MaxMagicEnergy.Value then
- Player.LocalData.MagicEnergy.Value = Player.LocalData.MaxMagicEnergy.Value
- break
- end
- wait(0.5)
- end
- Charging = false
- end
- function AutoChargeStamina()
- if Player.LocalData.Stamina.Value <= 0 and Player.LocalData.Charging2.Value == false then
- Run = false
- Player.Character.Humanoid.WalkSpeed = 16
- Player.LocalData.Charging2.Value = true
- Player.Character.Animate.Disabled = true
- Player.Character.Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=180426354"
- Player.Character.Animate.Disabled = false
- end
- if Player.LocalData.Charging2.Value == false then
- return
- end
- Charging2 = true
- if Player.LocalData.Stamina.Value >= Player.LocalData.MaxStamina.Value then
- Player.LocalData.Stamina.Value = Player.LocalData.MaxStamina.Value
- end
- while Player.LocalData.Stamina.Value < Player.LocalData.MaxStamina.Value and Player.LocalData.Charging2.Value == true do
- if Player.LocalData.Stamina.Value <= 0 then
- Player.LocalData.Stamina.Value = 0
- end
- Player.LocalData.Stamina.Value = Player.LocalData.Stamina.Value + Player.LocalData.MaxStamina.Value * 0.015
- if Player.LocalData.Stamina.Value >= Player.LocalData.MaxStamina.Value then
- Player.LocalData.Stamina.Value = Player.LocalData.MaxStamina.Value
- break
- end
- wait(0.5)
- end
- Charging2 = false
- end
- function ShowB()
- GuiModules.ButtonEffect(Player, script.Parent.ButtonFrame.SaveMoves, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- script.Parent.ButtonFrame.Show.MouseButton1Click:connect(function()
- if Show == false then
- Show = true
- for i, v in next, script.Parent.ButtonFrame:GetChildren() do
- if v.Name ~= "PartyChat" and v.Name ~= "MainChat" and v.Name ~= "Show" then
- v.Visible = false
- end
- end
- script.Parent.ButtonFrame.Show.Text = "<"
- elseif Show == true then
- Show = false
- for i, v in next, script.Parent.ButtonFrame:GetChildren() do
- if v.Name ~= "PartyChat" and v.Name ~= "MainChat" and v.Name ~= "Show" then
- v.Visible = true
- end
- end
- script.Parent.ButtonFrame.Show.Text = ">"
- end
- end)
- end
- function SaveMoveSet()
- GuiModules.ButtonEffect(Player, script.Parent.ButtonFrame.Show, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- script.Parent.ButtonFrame.SaveMoves.MouseButton1Click:connect(function()
- if Saved2 == false then
- Saved2 = true
- game.Workspace.Main.Save:InvokeServer(true)
- for i = 30, 1, -1 do
- script.Parent.ButtonFrame.SaveMoves.Text = i
- wait(1)
- end
- script.Parent.ButtonFrame.SaveMoves.Text = "Save Spells"
- Saved2 = false
- end
- end)
- end
- function LoadMoveset()
- GuiModules.ButtonEffect(Player, script.Parent.ButtonFrame.LoadMoves, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- script.Parent.ButtonFrame.LoadMoves.MouseButton1Click:connect(function()
- if Load == false then
- Load = true
- game.Workspace.Main.LoadSet:FireServer()
- for i = 30, 1, -1 do
- script.Parent.ButtonFrame.LoadMoves.Text = i
- wait(1)
- end
- script.Parent.ButtonFrame.LoadMoves.Text = "Load Spells"
- Load = false
- end
- end)
- end
- function Guild()
- GuiModules.ButtonEffect(Player, script.Parent.ButtonFrame.Guild, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- script.Parent.ButtonFrame.Guild.MouseButton1Click:connect(function()
- script.Parent.SettingsFrame.Visible = false
- script.Parent.FeedbackFrame.Visible = false
- script.Parent.PartyFrame.Visible = false
- script.Parent.SecondMagicFrame.Visible = false
- script.Parent.TwitterFrame.Visible = false
- script.Parent.InventoryFrame.Visible = false
- script.Parent.DamageFrame.Visible = false
- script.Parent.ThirdMagicFrame.Visible = false
- script.Parent.ShopFrame.Visible = false
- script.Parent.FirstMagicFrame.Visible = false
- if script.Parent.GuildFrame.Visible then
- script.Parent.GuildFrame.Visible = false
- script.Parent.GuildFrame.Main.Disabled = true
- else
- script.Parent.GuildFrame.Visible = true
- script.Parent.GuildFrame.Main.Disabled = false
- end
- end)
- end
- function Inventory()
- GuiModules.ButtonEffect(Player, script.Parent.ButtonFrame.Inventory, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- script.Parent.ButtonFrame.Inventory.MouseButton1Click:connect(function()
- script.Parent.SettingsFrame.Visible = false
- script.Parent.FeedbackFrame.Visible = false
- script.Parent.PartyFrame.Visible = false
- script.Parent.SecondMagicFrame.Visible = false
- script.Parent.TwitterFrame.Visible = false
- script.Parent.DamageFrame.Visible = false
- script.Parent.ThirdMagicFrame.Visible = false
- script.Parent.ShopFrame.Visible = false
- script.Parent.GuildFrame.Visible = false
- script.Parent.FirstMagicFrame.Visible = false
- if script.Parent.InventoryFrame.Visible then
- script.Parent.InventoryFrame.Visible = false
- script.Parent.InventoryFrame.Main.Disabled = true
- else
- script.Parent.InventoryFrame.Visible = true
- script.Parent.InventoryFrame.Main.Disabled = false
- end
- end)
- end
- function Shop()
- GuiModules.ButtonEffect(Player, script.Parent.ButtonFrame.Shop, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- script.Parent.ButtonFrame.Shop.MouseButton1Click:connect(function()
- script.Parent.DamageFrame.Visible = false
- script.Parent.SettingsFrame.Visible = false
- script.Parent.FeedbackFrame.Visible = false
- script.Parent.InventoryFrame.Visible = false
- script.Parent.PartyFrame.Visible = false
- script.Parent.FirstMagicFrame.Visible = false
- script.Parent.TwitterFrame.Visible = false
- script.Parent.SkillPointsFrame.Visible = false
- script.Parent.GuildFrame.Visible = false
- script.Parent.ThirdMagicFrame.Visible = false
- script.Parent.SecondMagicFrame.Visible = false
- if script.Parent.ShopFrame.Visible then
- script.Parent.ShopFrame.Visible = false
- script.Parent.ShopFrame.Main.Disabled = true
- for i, v in pairs(script.Parent.ShopFrame.ScrollingFrame:GetChildren()) do
- if v.ClassName == "Frame" and v.Name ~= "Item" then
- v:Destroy()
- end
- end
- else
- script.Parent.ShopFrame.Visible = true
- script.Parent.ShopFrame.Main.Disabled = true
- for i, v in pairs(script.Parent.ShopFrame.ScrollingFrame:GetChildren()) do
- if v.ClassName == "Frame" and v.Name ~= "Item" then
- v:Destroy()
- end
- end
- script.Parent.ShopFrame.Main.Disabled = false
- end
- end)
- end
- function FirstMagic()
- GuiModules.ButtonEffect(Player, script.Parent.ButtonFrame.FirstMagic, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- script.Parent.ButtonFrame.FirstMagic.MouseButton1Click:connect(function()
- script.Parent.SettingsFrame.Visible = false
- script.Parent.DamageFrame.Visible = false
- script.Parent.ShopFrame.Visible = false
- script.Parent.GuildFrame.Visible = false
- script.Parent.FeedbackFrame.Visible = false
- script.Parent.PartyFrame.Visible = false
- script.Parent.InventoryFrame.Visible = false
- script.Parent.TwitterFrame.Visible = false
- script.Parent.SkillPointsFrame.Visible = false
- script.Parent.ThirdMagicFrame.Visible = false
- script.Parent.SecondMagicFrame.Visible = false
- if script.Parent.FirstMagicFrame.Visible then
- script.Parent.FirstMagicFrame.Visible = false
- script.Parent.FirstMagicFrame.Main.Disabled = true
- for i, v in pairs(script.Parent.FirstMagicFrame.ScrollingFrame:GetChildren()) do
- if v.ClassName == "Frame" and v.Name ~= "Spell" then
- v:Destroy()
- end
- end
- else
- script.Parent.FirstMagicFrame.Visible = true
- script.Parent.FirstMagicFrame.Main.Disabled = true
- for i, v in pairs(script.Parent.FirstMagicFrame.ScrollingFrame:GetChildren()) do
- if v.ClassName == "Frame" and v.Name ~= "Spell" then
- v:Destroy()
- end
- end
- script.Parent.FirstMagicFrame.Main.Disabled = false
- end
- end)
- end
- function SecondMagic()
- GuiModules.ButtonEffect(Player, script.Parent.ButtonFrame.SecondMagic, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- script.Parent.ButtonFrame.SecondMagic.MouseButton1Click:connect(function()
- script.Parent.SettingsFrame.Visible = false
- script.Parent.FeedbackFrame.Visible = false
- script.Parent.DamageFrame.Visible = false
- script.Parent.ShopFrame.Visible = false
- script.Parent.PartyFrame.Visible = false
- script.Parent.TwitterFrame.Visible = false
- script.Parent.GuildFrame.Visible = false
- script.Parent.SkillPointsFrame.Visible = false
- script.Parent.FirstMagicFrame.Visible = false
- script.Parent.InventoryFrame.Visible = false
- script.Parent.ThirdMagicFrame.Visible = false
- local Level = game.Workspace.Main.CheckStat:InvokeServer("Level", Player.Name)
- local Magic2 = game.Workspace.Main.CheckStat:InvokeServer("Magic2", Player.Name)
- if Magic2 ~= "" then
- if script.Parent.SecondMagicFrame.Visible then
- script.Parent.SecondMagicFrame.Visible = false
- script.Parent.SecondMagicFrame.Main.Disabled = true
- for i, v in pairs(script.Parent.SecondMagicFrame.ScrollingFrame:GetChildren()) do
- if v.ClassName == "Frame" and v.Name ~= "Spell" then
- v:Destroy()
- end
- end
- else
- script.Parent.SecondMagicFrame.Visible = true
- script.Parent.SecondMagicFrame.Main.Disabled = true
- for i, v in pairs(script.Parent.SecondMagicFrame.ScrollingFrame:GetChildren()) do
- if v.ClassName == "Frame" and v.Name ~= "Spell" then
- v:Destroy()
- end
- end
- script.Parent.SecondMagicFrame.Main.Disabled = false
- end
- else
- local Gamepass = game.Workspace.ServerEvents.CheckGamepass:InvokeServer(378084188, Player.Name)
- local Check2Chance = game.Workspace.Main.CheckStat:InvokeServer("Magic2Chance", Player.Name)
- if Level >= 50 and Gamepass == false and Magic2 == "" then
- if Check2Chance == 0 then
- game.Workspace.Main.SetStat:FireServer("Magic2Chance", Player.Name, 1, game:GetService("HttpService"):JSONEncode({
- _G["26"]
- }))
- game.Workspace.Main.AddStat:FireServer("Chances", Player.Name, 3, game:GetService("HttpService"):JSONEncode({
- _G["26"]
- }))
- end
- game.Workspace.Main.ParentGui:FireServer(Player.Name, "Magic2", "Main")
- elseif Level >= 20 and Gamepass == true and Magic2 == "" then
- if Check2Chance == 0 then
- game.Workspace.Main.SetStat:FireServer("Magic2Chance", Player.Name, 1, game:GetService("HttpService"):JSONEncode({
- _G["26"]
- }))
- game.Workspace.Main.AddStat:FireServer("Chances", Player.Name, 3, game:GetService("HttpService"):JSONEncode({
- _G["26"]
- }))
- end
- game.Workspace.Main.ParentGui:FireServer(Player.Name, "Magic2", "Main")
- elseif Level < 20 and Gamepass == true and Magic2 == "" then
- if Player.PlayerGui:FindFirstChild("TopbarNotification") == nil then
- local Notification = game.ReplicatedStorage.LocalGuis.TopbarNotification:Clone()
- Notification.Parent = Player.PlayerGui
- game.Debris:AddItem(Notification, 4)
- Notification.Notification.Text = "You have the gamepass but you need to be level 20!"
- for i = 1, 40 do
- Notification.Notification.TextTransparency = Notification.Notification.TextTransparency + 0.025
- wait(0.05)
- end
- end
- elseif Level < 50 and Gamepass == false and Magic2 == "" and Player.PlayerGui:FindFirstChild("TopbarNotification") == nil then
- local Notification = game.ReplicatedStorage.LocalGuis.TopbarNotification:Clone()
- Notification.Parent = Player.PlayerGui
- game.Debris:AddItem(Notification, 4)
- Notification.Notification.Text = "You have to be level 50 to unlock second magic!"
- for i = 1, 40 do
- Notification.Notification.TextTransparency = Notification.Notification.TextTransparency + 0.025
- wait(0.05)
- end
- end
- end
- end)
- end
- function ThirdMagic()
- GuiModules.ButtonEffect(Player, script.Parent.ButtonFrame.ThirdMagic, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- script.Parent.ButtonFrame.ThirdMagic.MouseButton1Click:connect(function()
- script.Parent.SettingsFrame.Visible = false
- script.Parent.FeedbackFrame.Visible = false
- script.Parent.PartyFrame.Visible = false
- script.Parent.GuildFrame.Visible = false
- script.Parent.DamageFrame.Visible = false
- script.Parent.InventoryFrame.Visible = false
- script.Parent.TwitterFrame.Visible = false
- script.Parent.SkillPointsFrame.Visible = false
- script.Parent.FirstMagicFrame.Visible = false
- script.Parent.ShopFrame.Visible = false
- script.Parent.SecondMagicFrame.Visible = false
- local Level = game.Workspace.Main.CheckStat:InvokeServer("Level", Player.Name)
- local Gamepass = game.Workspace.ServerEvents.CheckGamepass:InvokeServer(378084358, Player.Name)
- local Magic3 = game.Workspace.Main.CheckStat:InvokeServer("Magic3", Player.Name)
- if Magic3 ~= "" then
- if script.Parent.ThirdMagicFrame.Visible then
- script.Parent.ThirdMagicFrame.Visible = false
- script.Parent.ThirdMagicFrame.Main.Disabled = true
- for i, v in pairs(script.Parent.ThirdMagicFrame.ScrollingFrame:GetChildren()) do
- if v.ClassName == "Frame" and v.Name ~= "Spell" then
- v:Destroy()
- end
- end
- else
- script.Parent.ThirdMagicFrame.Visible = true
- script.Parent.ThirdMagicFrame.Main.Disabled = true
- for i, v in pairs(script.Parent.ThirdMagicFrame.ScrollingFrame:GetChildren()) do
- if v.ClassName == "Frame" and v.Name ~= "Spell" then
- v:Destroy()
- end
- end
- script.Parent.ThirdMagicFrame.Main.Disabled = false
- end
- else
- local Check3Chance = game.Workspace.Main.CheckStat:InvokeServer("Magic3Chance", Player.Name)
- if Level >= 150 and Gamepass == false and Magic3 == "" then
- if Check3Chance == 0 then
- game.Workspace.Main.SetStat:FireServer("Magic3Chance", Player.Name, 1, game:GetService("HttpService"):JSONEncode({
- _G["26"]
- }))
- game.Workspace.Main.AddStat:FireServer("Chances", Player.Name, 3, game:GetService("HttpService"):JSONEncode({
- _G["26"]
- }))
- end
- game.Workspace.Main.ParentGui:FireServer(Player.Name, "Magic3", "Main")
- elseif Level >= 40 and Gamepass == true and Magic3 == "" then
- if Check3Chance == 0 then
- game.Workspace.Main.SetStat:FireServer("Magic3Chance", Player.Name, 1, game:GetService("HttpService"):JSONEncode({
- _G["26"]
- }))
- game.Workspace.Main.AddStat:FireServer("Chances", Player.Name, 3, game:GetService("HttpService"):JSONEncode({
- _G["26"]
- }))
- end
- game.Workspace.Main.ParentGui:FireServer(Player.Name, "Magic3", "Main")
- elseif Level < 40 and Gamepass == true and Magic3 == "" then
- if Player.PlayerGui:FindFirstChild("TopbarNotification") == nil then
- local Notification = game.ReplicatedStorage.LocalGuis.TopbarNotification:Clone()
- Notification.Parent = Player.PlayerGui
- game.Debris:AddItem(Notification, 4)
- Notification.Notification.Text = "You have the gamepass but you need to be level 40!"
- for i = 1, 40 do
- Notification.Notification.TextTransparency = Notification.Notification.TextTransparency + 0.025
- wait(0.05)
- end
- end
- elseif Level < 150 and Gamepass == false and Magic3 == "" and Player.PlayerGui:FindFirstChild("TopbarNotification") == nil then
- local Notification = game.ReplicatedStorage.LocalGuis.TopbarNotification:Clone()
- Notification.Parent = Player.PlayerGui
- game.Debris:AddItem(Notification, 4)
- Notification.Notification.Text = "You have to be level 150 to unlock third magic!"
- for i = 1, 40 do
- Notification.Notification.TextTransparency = Notification.Notification.TextTransparency + 0.025
- wait(0.05)
- end
- end
- end
- end)
- end
- function SkillPoints()
- GuiModules.ButtonEffect(Player, script.Parent.ButtonFrame.SkillPoints, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- script.Parent.ButtonFrame.SkillPoints.MouseButton1Click:connect(function()
- script.Parent.SettingsFrame.Visible = false
- script.Parent.FeedbackFrame.Visible = false
- script.Parent.PartyFrame.Visible = false
- script.Parent.GuildFrame.Visible = false
- script.Parent.SecondMagicFrame.Visible = false
- script.Parent.GuildFrame.Visible = false
- script.Parent.TwitterFrame.Visible = false
- script.Parent.InventoryFrame.Visible = false
- script.Parent.DamageFrame.Visible = false
- script.Parent.ThirdMagicFrame.Visible = false
- script.Parent.ShopFrame.Visible = false
- script.Parent.FirstMagicFrame.Visible = false
- if script.Parent.SkillPointsFrame.Visible then
- script.Parent.SkillPointsFrame.Visible = false
- script.Parent.SkillPointsFrame.Main.Disabled = true
- else
- script.Parent.SkillPointsFrame.Visible = true
- script.Parent.SkillPointsFrame.Main.Disabled = false
- end
- end)
- end
- function ChatChange()
- GuiModules.ButtonEffect(Player, script.Parent.ButtonFrame.MainChat, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- GuiModules.ButtonEffect(Player, script.Parent.ButtonFrame.PartyChat, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- local CheckLeader = game.Workspace.Main.CheckParty:InvokeServer("Leader", Player.Name)
- if CheckLeader ~= "" then
- script.Parent.ButtonFrame.MainChat.Visible = true
- script.Parent.ButtonFrame.PartyChat.Visible = true
- elseif CheckLeader == "" and Player:FindFirstChild("Chat") then
- Player:FindFirstChild("Chat"):Destroy()
- end
- script.Parent.ButtonFrame.MainChat.MouseButton1Click:connect(function()
- if Player.PlayerGui:FindFirstChild("LocalChat") then
- Player.PlayerGui.LocalChat.Frame.Visible = true
- end
- if Player.PlayerGui:FindFirstChild("PartyChat") then
- Player.PlayerGui.PartyChat.Frame.Visible = false
- end
- if Player:FindFirstChild("Chat") then
- Player:FindFirstChild("Chat"):Destroy()
- end
- end)
- script.Parent.ButtonFrame.PartyChat.MouseButton1Click:connect(function()
- if Player.PlayerGui:FindFirstChild("LocalChat") then
- Player.PlayerGui.LocalChat.Frame.Visible = false
- end
- if Player.PlayerGui:FindFirstChild("PartyChat") then
- Player.PlayerGui.PartyChat.Frame.Visible = true
- end
- if Player:FindFirstChild("Chat") then
- Player:FindFirstChild("Chat"):Destroy()
- end
- local Chat = Instance.new("StringValue", Player)
- Chat.Name = "Chat"
- end)
- end
- function Twitter()
- GuiModules.ButtonEffect(Player, script.Parent.ButtonFrame.Twitter, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- script.Parent.ButtonFrame.Twitter.MouseButton1Click:connect(function()
- script.Parent.SettingsFrame.Visible = false
- script.Parent.FeedbackFrame.Visible = false
- script.Parent.PartyFrame.Visible = false
- script.Parent.SkillPointsFrame.Visible = false
- script.Parent.InventoryFrame.Visible = false
- script.Parent.GuildFrame.Visible = false
- script.Parent.DamageFrame.Visible = false
- script.Parent.SecondMagicFrame.Visible = false
- script.Parent.ThirdMagicFrame.Visible = false
- script.Parent.ShopFrame.Visible = false
- script.Parent.FirstMagicFrame.Visible = false
- if script.Parent.TwitterFrame.Visible then
- script.Parent.TwitterFrame.Visible = false
- script.Parent.TwitterFrame.Main.Disabled = true
- else
- script.Parent.TwitterFrame.Visible = true
- script.Parent.TwitterFrame.Main.Disabled = false
- end
- end)
- end
- function Party()
- GuiModules.ButtonEffect(Player, script.Parent.ButtonFrame.Party, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- script.Parent.ButtonFrame.Party.MouseButton1Click:connect(function()
- script.Parent.FirstMagicFrame.Visible = false
- script.Parent.FeedbackFrame.Visible = false
- script.Parent.TwitterFrame.Visible = false
- script.Parent.SkillPointsFrame.Visible = false
- script.Parent.InventoryFrame.Visible = false
- script.Parent.SettingsFrame.Visible = false
- script.Parent.GuildFrame.Visible = false
- script.Parent.DamageFrame.Visible = false
- script.Parent.ThirdMagicFrame.Visible = false
- script.Parent.ShopFrame.Visible = false
- script.Parent.SecondMagicFrame.Visible = false
- if script.Parent.PartyFrame.Visible then
- script.Parent.PartyFrame.Visible = false
- else
- script.Parent.PartyFrame.Visible = true
- script.Parent.PartyFrame.Invite.MouseEnter:connect(function()
- script.Parent.PartyFrame.Invite.Back.ImageColor3 = Color3.new(0.11372549019607843, 0.11372549019607843, 0.11372549019607843)
- end)
- script.Parent.PartyFrame.Invite.MouseLeave:connect(function()
- script.Parent.PartyFrame.Invite.Back.ImageColor3 = Color3.new(0.44313725490196076, 0.4196078431372549, 0.44313725490196076)
- end)
- script.Parent.PartyFrame.Invite.MouseButton1Click:connect(function()
- if script.Parent.PartyFrame.PlayerText.Text ~= Player.Name and game.Players:FindFirstChild(script.Parent.PartyFrame.PlayerText.Text) then
- local Target = game.Players:FindFirstChild(script.Parent.PartyFrame.PlayerText.Text)
- local Check = game.Workspace.Main.CheckStat:InvokeServer("Party", Target.Name)
- if Check == "" then
- local Names, Values = game.Workspace.Main.GetPartyMembers:InvokeServer("Party", Player.Name)
- local Count = 0
- for i, v in pairs(Values) do
- if v == "" then
- break
- end
- Count = Count + 1
- end
- if Count == 4 then
- script.Parent.PartyFrame.PlayerText.Text = "Your party is too full so invite to " .. Target.Name .. " couldn't be sent"
- else
- script.Parent.PartyFrame.PlayerText.Text = "Sent invite to " .. Target.Name
- game.Workspace.Main.ParentGui:FireServer(Target.Name, "PartyInvite", "Main", Player.Name, "Inviter")
- end
- else
- script.Parent.PartyFrame.PlayerText.Text = Target.Name .. " is in another party"
- end
- else
- script.Parent.PartyFrame.PlayerText.Text = "Player is not found, or you're trying to invite yourself"
- end
- end)
- end
- end)
- end
- function Settings()
- GuiModules.ButtonEffect(Player, script.Parent.ButtonFrame.Settings, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- script.Parent.ButtonFrame.Settings.MouseButton1Click:connect(function()
- script.Parent.FirstMagicFrame.Visible = false
- script.Parent.FeedbackFrame.Visible = false
- script.Parent.DamageFrame.Visible = false
- script.Parent.ShopFrame.Visible = false
- script.Parent.PartyFrame.Visible = false
- script.Parent.SecondMagicFrame.Visible = false
- script.Parent.SkillPointsFrame.Visible = false
- script.Parent.InventoryFrame.Visible = false
- script.Parent.ThirdMagicFrame.Visible = false
- script.Parent.GuildFrame.Visible = false
- script.Parent.TwitterFrame.Visible = false
- if script.Parent.SettingsFrame.Visible then
- script.Parent.SettingsFrame.Visible = false
- else
- script.Parent.SettingsFrame.Visible = true
- local Setting1 = game.Workspace.Main.CheckStat:InvokeServer("Setting1", Player.Name)
- local Setting2 = game.Workspace.Main.CheckStat:InvokeServer("Setting2", Player.Name)
- local Setting3 = game.Workspace.Main.CheckStat:InvokeServer("Setting3", Player.Name)
- GuiModules.ButtonEffect(Player, script.Parent.SettingsFrame.Keydown, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- GuiModules.ButtonEffect(Player, script.Parent.SettingsFrame.Tool, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- GuiModules.ButtonEffect(Player, script.Parent.SettingsFrame.Show, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- GuiModules.ButtonEffect(Player, script.Parent.SettingsFrame.NoShow, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- GuiModules.ButtonEffect(Player, script.Parent.SettingsFrame.CustomizeExceed, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- GuiModules.ButtonEffect(Player, script.Parent.SettingsFrame.Reset2nd, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- GuiModules.ButtonEffect(Player, script.Parent.SettingsFrame.Reset3rd, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- GuiModules.ButtonEffect(Player, script.Parent.SettingsFrame.Reset1st, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- GuiModules.ButtonEffect(Player, script.Parent.SettingsFrame.Mute, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- GuiModules.ButtonEffect(Player, script.Parent.SettingsFrame.Unmute, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- if Setting1 == "Keydown" then
- script.Parent.SettingsFrame.Keydown.TextStrokeTransparency = 0
- script.Parent.SettingsFrame.Tool.TextStrokeTransparency = 1
- elseif Setting1 == "Tool" then
- script.Parent.SettingsFrame.Keydown.TextStrokeTransparency = 1
- script.Parent.SettingsFrame.Tool.TextStrokeTransparency = 0
- end
- if Setting2 == "true" then
- script.Parent.SettingsFrame.Show.TextStrokeTransparency = 0
- script.Parent.SettingsFrame.NoShow.TextStrokeTransparency = 1
- elseif Setting2 == "false" then
- script.Parent.SettingsFrame.Show.TextStrokeTransparency = 1
- script.Parent.SettingsFrame.NoShow.TextStrokeTransparency = 0
- end
- if Setting3 == "Mute" then
- script.Parent.SettingsFrame.Mute.TextStrokeTransparency = 0
- script.Parent.SettingsFrame.Unmute.TextStrokeTransparency = 1
- elseif Setting3 == "Unmute" then
- script.Parent.SettingsFrame.Mute.TextStrokeTransparency = 1
- script.Parent.SettingsFrame.Unmute.TextStrokeTransparency = 0
- end
- script.Parent.SettingsFrame.Keydown.MouseButton1Click:connect(function()
- if ButtonKey == false then
- ButtonKey = true
- game.Workspace.Main.SetStat:FireServer("Setting1", Player.Name, "Keydown", game:GetService("HttpService"):JSONEncode({
- _G["26"]
- }))
- script.Parent.SettingsFrame.Keydown.TextStrokeTransparency = 0
- script.Parent.SettingsFrame.Tool.TextStrokeTransparency = 1
- for i, v in pairs(Player.Backpack:GetChildren()) do
- if v.Name == "Keys" then
- v.Disabled = true
- v:Destroy()
- end
- end
- for i, v in pairs(Player.Backpack:GetChildren()) do
- if v:FindFirstChild("Magic") then
- v:Destroy()
- end
- end
- for i, v in pairs(Player.Character:GetChildren()) do
- if v:FindFirstChild("Magic") then
- v:Destroy()
- end
- end
- game.Workspace.ServerEvents.AddKeydown:FireServer(Player.Name)
- ButtonKey = false
- end
- end)
- script.Parent.SettingsFrame.Tool.MouseButton1Click:connect(function()
- game.Workspace.Main.SetStat:FireServer("Setting1", Player.Name, "Tool", game:GetService("HttpService"):JSONEncode({
- _G["26"]
- }))
- script.Parent.SettingsFrame.Keydown.TextStrokeTransparency = 1
- script.Parent.SettingsFrame.Tool.TextStrokeTransparency = 0
- for i, v in pairs(Player.Backpack:GetChildren()) do
- if v.Name == "Keys" then
- v.Disabled = true
- v:Destroy()
- end
- end
- for i, v in pairs(Player.Backpack:GetChildren()) do
- if v:FindFirstChild("Magic") then
- v:Destroy()
- end
- end
- for i, v in pairs(Player.Character:GetChildren()) do
- if v:FindFirstChild("Magic") then
- v:Destroy()
- end
- end
- end)
- script.Parent.SettingsFrame.Show.MouseButton1Click:connect(function()
- game.Workspace.Main.SetStat:FireServer("Setting2", Player.Name, "true", game:GetService("HttpService"):JSONEncode({
- _G["26"]
- }))
- script.Parent.SettingsFrame.Show.TextStrokeTransparency = 0
- script.Parent.SettingsFrame.NoShow.TextStrokeTransparency = 1
- if Player.Character.Head:FindFirstChild("Level") then
- Player.Character.Head.Level.Level.Text = "Level " .. Level
- else
- local FLevel = Instance.new("BillboardGui", Player.Character.Head)
- FLevel.Name = "Level"
- FLevel.Size = UDim2.new(5, 0, 5, 0)
- FLevel.StudsOffset = Vector3.new(0, 4, 0)
- local FTLevel = Instance.new("TextLabel", FLevel)
- FTLevel.BackgroundTransparency = 1
- FTLevel.Name = "Level"
- FTLevel.Size = UDim2.new(0.5, 0, 0.2, 0)
- FTLevel.Position = UDim2.new(0.25, 0, 0.75, 0)
- FTLevel.TextColor3 = Color3.new(0, 0.6666666666666666, 1)
- FTLevel.TextStrokeColor3 = Color3.new(0, 0, 0)
- FTLevel.TextStrokeTransparency = 0
- FTLevel.Font = "SourceSansLight"
- FTLevel.Text = "Level " .. Level
- FTLevel.TextScaled = true
- local GuildImage = Instance.new("ImageLabel", FLevel)
- GuildImage.BackgroundTransparency = 1
- GuildImage.Name = "Guild"
- GuildImage.Size = UDim2.new(0.5, 0, 0.5, 0)
- GuildImage.Position = UDim2.new(0.25, 0, 0.25, 0)
- for i, v in pairs(Guild2) do
- if Player:IsInGroup(v.GroupId) then
- GuildImage.Image = "rbxassetid://" .. v.GroupLogo
- end
- end
- end
- end)
- script.Parent.SettingsFrame.NoShow.MouseButton1Click:connect(function()
- game.Workspace.Main.SetStat:FireServer("Setting2", Player.Name, "false", game:GetService("HttpService"):JSONEncode({
- _G["26"]
- }))
- script.Parent.SettingsFrame.Show.TextStrokeTransparency = 1
- script.Parent.SettingsFrame.NoShow.TextStrokeTransparency = 0
- if Player.Character.Head:FindFirstChild("Level") then
- Player.Character.Head.Level:Destroy()
- else
- end
- end)
- script.Parent.SettingsFrame.CustomizeExceed.MouseButton1Click:connect(function()
- local Exceed = game.Workspace.ServerEvents.CheckGamepass:InvokeServer(374065490, Player.Name)
- if Exceed == true then
- game.Workspace.Main.ParentGui:FireServer(Player.Name, "ExceedCustomizer", "LocalScript")
- else
- game:GetService("MarketplaceService"):PromptPurchase(Player, 374065490)
- game:GetService("MarketplaceService").PromptPurchaseFinished:connect(function(player, assetId, isPurchased)
- if isPurchased and assetId == 374065490 then
- Player.Character.Humanoid.Health = 0
- end
- end)
- end
- end)
- script.Parent.SettingsFrame.Reset2nd.MouseButton1Click:connect(function()
- local Magic2 = game.Workspace.Main.CheckStat:InvokeServer("Magic2", Player.Name)
- if Magic2 ~= "" then
- game.Workspace.Main.SetStat:FireServer("Magic2", Player.Name, "", game:GetService("HttpService"):JSONEncode({
- _G["26"]
- }))
- end
- end)
- script.Parent.SettingsFrame.Reset3rd.MouseButton1Click:connect(function()
- local Magic3 = game.Workspace.Main.CheckStat:InvokeServer("Magic3", Player.Name)
- if Magic3 ~= "" then
- game.Workspace.Main.SetStat:FireServer("Magic3", Player.Name, "", game:GetService("HttpService"):JSONEncode({
- _G["26"]
- }))
- end
- end)
- script.Parent.SettingsFrame.Reset1st.MouseButton1Click:connect(function()
- if game.PlaceId == 415380657 then
- game:GetService("MarketplaceService"):PromptProductPurchase(Player, 35732330, true, Enum.CurrencyType.Robux)
- else
- game:GetService("MarketplaceService"):PromptProductPurchase(Player, 33331914, true, Enum.CurrencyType.Robux)
- end
- end)
- script.Parent.SettingsFrame.Mute.MouseButton1Click:connect(function()
- game.Workspace.Main.SetStat:FireServer("Setting3", Player.Name, "Mute", game:GetService("HttpService"):JSONEncode({
- _G["26"]
- }))
- script.Parent.SettingsFrame.Mute.TextStrokeTransparency = 0
- script.Parent.SettingsFrame.Unmute.TextStrokeTransparency = 1
- for i, v in pairs(Player.PlayerGui:GetChildren()) do
- if v.ClassName == "Sound" then
- v:Stop()
- end
- end
- end)
- script.Parent.SettingsFrame.Unmute.MouseButton1Click:connect(function()
- game.Workspace.Main.SetStat:FireServer("Setting3", Player.Name, "Unmute", game:GetService("HttpService"):JSONEncode({
- _G["26"]
- }))
- script.Parent.SettingsFrame.Mute.TextStrokeTransparency = 1
- script.Parent.SettingsFrame.Unmute.TextStrokeTransparency = 0
- for i, v in pairs(Player.PlayerGui:GetChildren()) do
- if v.ClassName == "Sound" then
- v:Play()
- end
- end
- end)
- end
- end)
- end
- function DamageOutput()
- GuiModules.ButtonEffect(Player, script.Parent.ButtonFrame.Damage, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- script.Parent.ButtonFrame.Damage.MouseButton1Click:connect(function()
- script.Parent.SettingsFrame.Visible = false
- script.Parent.FirstMagicFrame.Visible = false
- script.Parent.PartyFrame.Visible = false
- script.Parent.SkillPointsFrame.Visible = false
- script.Parent.GuildFrame.Visible = false
- script.Parent.FeedbackFrame.Visible = false
- script.Parent.ShopFrame.Visible = false
- script.Parent.InventoryFrame.Visible = false
- script.Parent.ThirdMagicFrame.Visible = false
- script.Parent.SecondMagicFrame.Visible = false
- script.Parent.TwitterFrame.Visible = false
- if DamageOutputD == false then
- DamageOutputD = true
- script.Parent.DamageFrame.Visible = true
- script.Parent.DamageFrame.Main.Disabled = false
- elseif DamageOutputD == true then
- DamageOutputD = false
- script.Parent.DamageFrame.Visible = false
- script.Parent.DamageFrame.Main.Disabled = true
- end
- end)
- end
- function ClearQuest()
- script.Parent.ClearQuestButton.MouseButton1Click:connect(function()
- game.Workspace.ServerEvents.ClearQuest:FireServer()
- MainGuiUpdate.QuestClear(Player, script.Parent.QuestFrame)
- end)
- end
- local KeyCode = "Quote"
- local Prefix = ";"
- function CommandBar(actionName, actionInputState, inputObject)
- if actionInputState == Enum.UserInputState.Begin and game.Workspace.ServerEvents.CheckAdmin:InvokeServer(Player.Name) == true and script.Parent.Commandbox.Visible == false then
- script.Parent.Commandbox.Visible = true
- script.Parent.Commandbox.Text = ""
- script.Parent.Commandbox:CaptureFocus()
- elseif actionInputState == Enum.UserInputState.Begin and game.Workspace.ServerEvents.CheckAdmin:InvokeServer(Player.Name) == true and script.Parent.Commandbox.Visible == true then
- script.Parent.Commandbox.Visible = false
- end
- end
- function Save()
- GuiModules.ButtonEffect(Player, script.Parent.ButtonFrame.Save, "Back", Color3.new(0.20784313725490197, 0.20784313725490197, 0.20784313725490197), Color3.new(0.10196078431372549, 0.10196078431372549, 0.10196078431372549))
- script.Parent.ButtonFrame.Save.MouseButton1Click:connect(function()
- if Saved == false then
- Saved = true
- game.Workspace.Main.Save:InvokeServer(false)
- for i = 30, 1, -1 do
- script.Parent.ButtonFrame.Save.Text = i
- wait(1)
- end
- script.Parent.ButtonFrame.Save.Text = "Save"
- Saved = false
- elseif Saved == true then
- end
- end)
- end
- function HighJump(actionName, actionInputState, inputObject)
- if actionInputState == Enum.UserInputState.Begin and Jump == false and Player.LocalData.Stamina.Value >= 35 then
- Jump = true
- JumpCharge = true
- if Player.Character.Humanoid.Jump == true then
- Jump = false
- JumpCharge = false
- return
- end
- if Player.Character.Humanoid.Sit == true then
- Jump = false
- JumpCharge = false
- return
- end
- Speed = Player.Character.Humanoid.WalkSpeed
- if Speed == 0 then
- Speed = 16
- end
- Player.Character.Humanoid.WalkSpeed = 8
- if Player.LocalData.Stamina.Value < 15 then
- Jump = false
- JumpCharge = false
- return
- end
- Player.LocalData.Stamina.Value = Player.LocalData.Stamina.Value - 35
- local Anim = 389078601
- local animation = Instance.new("Animation")
- animation.AnimationId = "http://www.roblox.com/Asset?ID=" .. Anim
- local animTrack = Player.Character.Humanoid:LoadAnimation(animation)
- animTrack:Play()
- animTrack:AdjustSpeed(0)
- local Charge = 0
- while JumpCharge == true do
- Charge = Charge + 1
- if Player.LocalData.Stamina.Value <= 15 then
- break
- end
- Player.LocalData.Stamina.Value = Player.LocalData.Stamina.Value - 15
- if Player.Character.Humanoid.Jump == true then
- break
- end
- if JumpCharge == false then
- break
- end
- if Charge == 30 then
- break
- end
- wait()
- end
- Player.Character.Humanoid.WalkSpeed = Speed
- if Player.Character.Torso.Position.Y > 102 then
- Explosion.Shockwave(nil, nil, Vector3.new(Charge / 6 + 10, Charge / 12 + 2.5, Charge / 6 + 10), true, Player.Character.Torso.Position + Vector3.new(0, -2, 0), game.Workspace)
- else
- Explosion.Shockwave(BrickColor.new("White"), BrickColor.new("White"), Vector3.new(Charge / 6 + 10, Charge / 12 + 2.5, Charge / 6 + 10), true, Player.Character.Torso.Position + Vector3.new(0, -2, 0), game.Workspace)
- end
- local LeapV = Instance.new("BodyVelocity", Player.Character.HumanoidRootPart)
- LeapV.maxForce = Vector3.new(0, math.huge, 0)
- if HasAgile then
- LeapV.velocity = Vector3.new(0, (40 + Charge * 0.85) * 2.25, 0)
- else
- LeapV.velocity = Vector3.new(0, (40 + Charge * 0.85) * 2, 0)
- end
- game.Debris:AddItem(LeapV, 0.25)
- wait(0.5)
- animTrack:Stop()
- wait(1)
- Jump = false
- end
- if actionInputState == Enum.UserInputState.End then
- JumpCharge = false
- end
- end
- function FrontFlip(actionName, actionInputState, inputObject)
- if actionInputState == Enum.UserInputState.Begin and Jump == false and Player.LocalData.Stamina.Value >= 35 then
- Jump = true
- JumpCharge = true
- if Player.Character.Humanoid.Jump == true then
- Jump = false
- JumpCharge = false
- return
- end
- if Player.Character.Humanoid.Sit == true then
- Jump = false
- JumpCharge = false
- return
- end
- Speed = Player.Character.Humanoid.WalkSpeed
- if Speed == 0 then
- Speed = 16
- end
- Player.Character.Humanoid.WalkSpeed = 8
- if Player.LocalData.Stamina.Value < 15 then
- Jump = false
- JumpCharge = false
- return
- end
- Player.LocalData.Stamina.Value = Player.LocalData.Stamina.Value - 35
- local Anim = 464288577
- local animation = Instance.new("Animation")
- animation.AnimationId = "http://www.roblox.com/Asset?ID=" .. Anim
- local animTrack = Player.Character.Humanoid:LoadAnimation(animation)
- animTrack:Play()
- animTrack:AdjustSpeed(0)
- local Charge = 0
- while JumpCharge == true do
- Charge = Charge + 1
- if Player.LocalData.Stamina.Value <= 15 then
- break
- end
- Player.LocalData.Stamina.Value = Player.LocalData.Stamina.Value - 15
- if Player.Character.Humanoid.Jump == true then
- break
- end
- if JumpCharge == false then
- break
- end
- if Charge == 30 then
- break
- end
- wait()
- end
- animTrack:AdjustSpeed(1)
- Player.Character.Humanoid.WalkSpeed = Speed
- if Player.Character.Torso.Position.Y > 102 then
- Explosion.Shockwave(nil, nil, Vector3.new(Charge / 6 + 10, Charge / 12 + 2.5, Charge / 6 + 10), true, Player.Character.Torso.Position + Vector3.new(0, -2, 0), game.Workspace)
- else
- Explosion.Shockwave(BrickColor.new("White"), BrickColor.new("White"), Vector3.new(Charge / 6 + 10, Charge / 12 + 2.5, Charge / 6 + 10), true, Player.Character.Torso.Position + Vector3.new(0, -2, 0), game.Workspace)
- end
- local LeapV = Instance.new("BodyVelocity", Player.Character.HumanoidRootPart)
- LeapV.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- local LeapV2 = Instance.new("BodyVelocity", Player.Character.Torso)
- LeapV2.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- Player.Character.Animate.Disabled = true
- if HasAgile then
- LeapV.velocity = Player.Character.Torso.CFrame * CFrame.Angles(math.rad(90), 0, 0).lookVector * ((30 + Charge) * 2)
- LeapV2.velocity = Player.Character.Torso.CFrame.lookVector * ((45 + Charge) * 2)
- else
- LeapV.velocity = Player.Character.Torso.CFrame * CFrame.Angles(math.rad(90), 0, 0).lookVector * (45 + Charge) * 1.25
- LeapV2.velocity = Player.Character.Torso.CFrame.lookVector * (45 + Charge)
- end
- game.Debris:AddItem(LeapV, 0.25)
- game.Debris:AddItem(LeapV2, 0.25)
- wait(1)
- animTrack:Stop()
- Player.Character.Animate.Disabled = false
- wait(0.5)
- Jump = false
- end
- if actionInputState == Enum.UserInputState.End then
- JumpCharge = false
- end
- end
- function BackFlip(actionName, actionInputState, inputObject)
- if actionInputState == Enum.UserInputState.Begin and Jump == false and Player.LocalData.Stamina.Value >= 35 then
- Jump = true
- JumpCharge = true
- if Player.Character.Humanoid.Jump == true then
- Jump = false
- JumpCharge = false
- return
- end
- if Player.Character.Humanoid.Sit == true then
- Jump = false
- JumpCharge = false
- return
- end
- Speed = Player.Character.Humanoid.WalkSpeed
- if Speed == 0 then
- Speed = 16
- end
- Player.Character.Humanoid.WalkSpeed = 8
- if Player.LocalData.Stamina.Value < 35 then
- Jump = false
- JumpCharge = false
- return
- end
- Player.LocalData.Stamina.Value = Player.LocalData.Stamina.Value - 15
- local Anim = 464288062
- local animation = Instance.new("Animation")
- animation.AnimationId = "http://www.roblox.com/Asset?ID=" .. Anim
- local animTrack = Player.Character.Humanoid:LoadAnimation(animation)
- animTrack:Play()
- animTrack:AdjustSpeed(0)
- local Charge = 0
- while JumpCharge == true do
- Charge = Charge + 1
- if Player.LocalData.Stamina.Value <= 15 then
- break
- end
- Player.LocalData.Stamina.Value = Player.LocalData.Stamina.Value - 15
- if Player.Character.Humanoid.Jump == true then
- break
- end
- if JumpCharge == false then
- break
- end
- if Charge == 30 then
- break
- end
- wait()
- end
- animTrack:AdjustSpeed(1)
- Player.Character.Humanoid.WalkSpeed = Speed
- if Player.Character.Torso.Position.Y > 102 then
- Explosion.Shockwave(nil, nil, Vector3.new(Charge / 6 + 10, Charge / 12 + 2.5, Charge / 6 + 10), true, Player.Character.Torso.Position + Vector3.new(0, -2, 0), game.Workspace)
- else
- Explosion.Shockwave(BrickColor.new("White"), BrickColor.new("White"), Vector3.new(Charge / 6 + 10, Charge / 12 + 2.5, Charge / 6 + 10), true, Player.Character.Torso.Position + Vector3.new(0, -2, 0), game.Workspace)
- end
- local LeapV = Instance.new("BodyVelocity", Player.Character.HumanoidRootPart)
- LeapV.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- local LeapV2 = Instance.new("BodyVelocity", Player.Character.Torso)
- LeapV2.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- Player.Character.Animate.Disabled = true
- if HasAgile then
- LeapV.velocity = Player.Character.Torso.CFrame * CFrame.Angles(math.rad(90), 0, 0).lookVector * ((30 + Charge) * 2)
- LeapV2.velocity = -Player.Character.Torso.CFrame.lookVector * ((45 + Charge) * 2)
- else
- LeapV.velocity = Player.Character.Torso.CFrame * CFrame.Angles(math.rad(90), 0, 0).lookVector * (45 + Charge) * 1.25
- LeapV2.velocity = -Player.Character.Torso.CFrame.lookVector * (45 + Charge)
- end
- game.Debris:AddItem(LeapV, 0.25)
- game.Debris:AddItem(LeapV2, 0.25)
- wait(1)
- animTrack:Stop()
- Player.Character.Animate.Disabled = false
- wait(0.5)
- Jump = false
- end
- if actionInputState == Enum.UserInputState.End then
- JumpCharge = false
- end
- end
- function RightWheel(actionName, actionInputState, inputObject)
- if actionInputState == Enum.UserInputState.Begin and Jump == false and Player.LocalData.Stamina.Value >= 35 then
- Jump = true
- JumpCharge = true
- if Player.Character.Humanoid.Jump == true then
- Jump = false
- JumpCharge = false
- return
- end
- if Player.Character.Humanoid.Sit == true then
- Jump = false
- JumpCharge = false
- return
- end
- Speed = Player.Character.Humanoid.WalkSpeed
- if Speed == 0 then
- Speed = 16
- end
- Player.Character.Humanoid.WalkSpeed = 8
- if Player.LocalData.Stamina.Value < 15 then
- Jump = false
- JumpCharge = false
- return
- end
- Player.LocalData.Stamina.Value = Player.LocalData.Stamina.Value - 35
- local Anim = 464290561
- local animation = Instance.new("Animation")
- animation.AnimationId = "http://www.roblox.com/Asset?ID=" .. Anim
- local animTrack = Player.Character.Humanoid:LoadAnimation(animation)
- animTrack:Play()
- wait(0.1)
- animTrack:AdjustSpeed(0)
- local Charge = 0
- while JumpCharge == true do
- Charge = Charge + 1
- if Player.LocalData.Stamina.Value <= 15 then
- break
- end
- Player.LocalData.Stamina.Value = Player.LocalData.Stamina.Value - 15
- if Player.Character.Humanoid.Jump == true then
- break
- end
- if JumpCharge == false then
- break
- end
- if Charge == 30 then
- break
- end
- wait()
- end
- animTrack:AdjustSpeed(1)
- Player.Character.Humanoid.WalkSpeed = Speed
- if Player.Character.Torso.Position.Y > 102 then
- Explosion.Shockwave(nil, nil, Vector3.new(Charge / 6 + 10, Charge / 12 + 2.5, Charge / 6 + 10), true, Player.Character.Torso.Position + Vector3.new(0, -2, 0), game.Workspace)
- else
- Explosion.Shockwave(BrickColor.new("White"), BrickColor.new("White"), Vector3.new(Charge / 6 + 10, Charge / 12 + 2.5, Charge / 6 + 10), true, Player.Character.Torso.Position + Vector3.new(0, -2, 0), game.Workspace)
- end
- local LeapV = Instance.new("BodyVelocity", Player.Character.Torso)
- LeapV.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- local LeapV2 = Instance.new("BodyVelocity", Player.Character.HumanoidRootPart)
- LeapV2.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- Player.Character.Animate.Disabled = true
- if HasAgile then
- LeapV.velocity = Player.Character.Torso.CFrame * CFrame.Angles(0, math.rad(-90), 0).lookVector * ((65 + Charge) * 2)
- LeapV2.velocity = Player.Character.Torso.CFrame * CFrame.Angles(math.rad(90), 0, 0).lookVector * 45
- else
- LeapV.velocity = Player.Character.Torso.CFrame * CFrame.Angles(0, math.rad(-90), 0).lookVector * (100 + Charge)
- LeapV2.velocity = Player.Character.Torso.CFrame * CFrame.Angles(math.rad(90), 0, 0).lookVector * 45
- end
- game.Debris:AddItem(LeapV, 0.25)
- game.Debris:AddItem(LeapV2, 0.25)
- wait(1)
- animTrack:Stop()
- Player.Character.Animate.Disabled = false
- wait(0.5)
- Jump = false
- end
- if actionInputState == Enum.UserInputState.End then
- JumpCharge = false
- end
- end
- function LeftWheel(actionName, actionInputState, inputObject)
- if actionInputState == Enum.UserInputState.Begin and Jump == false and Player.LocalData.Stamina.Value >= 35 then
- Jump = true
- JumpCharge = true
- if Player.Character.Humanoid.Jump == true then
- Jump = false
- JumpCharge = false
- return
- end
- if Player.Character.Humanoid.Sit == true then
- Jump = false
- JumpCharge = false
- return
- end
- Speed = Player.Character.Humanoid.WalkSpeed
- if Speed == 0 then
- Speed = 16
- end
- Player.Character.Humanoid.WalkSpeed = 8
- if Player.LocalData.Stamina.Value < 15 then
- Jump = false
- JumpCharge = false
- return
- end
- Player.LocalData.Stamina.Value = Player.LocalData.Stamina.Value - 35
- local Anim = 464296623
- local animation = Instance.new("Animation")
- animation.AnimationId = "http://www.roblox.com/Asset?ID=" .. Anim
- local animTrack = Player.Character.Humanoid:LoadAnimation(animation)
- animTrack:Play()
- wait(0.1)
- animTrack:AdjustSpeed(0)
- local Charge = 0
- while JumpCharge == true do
- Charge = Charge + 1
- if Player.LocalData.Stamina.Value <= 15 then
- break
- end
- Player.LocalData.Stamina.Value = Player.LocalData.Stamina.Value - 15
- if Player.Character.Humanoid.Jump == true then
- break
- end
- if JumpCharge == false then
- break
- end
- if Charge == 30 then
- break
- end
- wait()
- end
- animTrack:AdjustSpeed(1)
- Player.Character.Humanoid.WalkSpeed = Speed
- if Player.Character.Torso.Position.Y > 102 then
- Explosion.Shockwave(nil, nil, Vector3.new(Charge / 6 + 10, Charge / 12 + 2.5, Charge / 6 + 10), true, Player.Character.Torso.Position + Vector3.new(0, -2, 0), game.Workspace)
- else
- Explosion.Shockwave(BrickColor.new("White"), BrickColor.new("White"), Vector3.new(Charge / 6 + 10, Charge / 12 + 2.5, Charge / 6 + 10), true, Player.Character.Torso.Position + Vector3.new(0, -2, 0), game.Workspace)
- end
- local LeapV = Instance.new("BodyVelocity", Player.Character.HumanoidRootPart)
- LeapV.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- local LeapV2 = Instance.new("BodyVelocity", Player.Character.Torso)
- LeapV2.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- Player.Character.Animate.Disabled = true
- if HasAgile then
- LeapV.velocity = Player.Character.Torso.CFrame * CFrame.Angles(0, math.rad(90), 0).lookVector * ((65 + Charge) * 2)
- LeapV2.velocity = Player.Character.Torso.CFrame * CFrame.Angles(math.rad(90), 0, 0).lookVector * 45
- else
- LeapV.velocity = Player.Character.Torso.CFrame * CFrame.Angles(0, math.rad(90), 0).lookVector * (100 + Charge)
- LeapV2.velocity = Player.Character.Torso.CFrame * CFrame.Angles(math.rad(90), 0, 0).lookVector * 45
- end
- game.Debris:AddItem(LeapV, 0.25)
- game.Debris:AddItem(LeapV2, 0.25)
- wait(1)
- animTrack:Stop()
- Player.Character.Animate.Disabled = false
- wait(0.5)
- Jump = false
- end
- if actionInputState == Enum.UserInputState.End then
- JumpCharge = false
- end
- end
- function CloseUI(actionName, actionInputState, inputObject)
- if actionInputState == Enum.UserInputState.Begin then
- script.Parent.SettingsFrame.Visible = false
- script.Parent.FeedbackFrame.Visible = false
- script.Parent.PartyFrame.Visible = false
- script.Parent.SecondMagicFrame.Visible = false
- script.Parent.TwitterFrame.Visible = false
- script.Parent.InventoryFrame.Visible = false
- script.Parent.DamageFrame.Visible = false
- script.Parent.ThirdMagicFrame.Visible = false
- script.Parent.ShopFrame.Visible = false
- script.Parent.FirstMagicFrame.Visible = false
- script.Parent.GuildFrame.Visible = false
- end
- end
- function ChargingEnergy(actionName, actionInputState, inputObject)
- if actionInputState == Enum.UserInputState.Begin then
- if Player.LocalData.Charging.Value ~= true then
- return
- end
- if MCharging == true then
- return
- end
- if Player.LocalData.MagicEnergy.Value >= Player.LocalData.MaxMagicEnergy.Value then
- return
- end
- local ChargeTrack = Player.Character.Humanoid:LoadAnimation(game.ReplicatedStorage.Animations.Charging.Animation)
- ChargeTrack:Play()
- ChargeTrack:AdjustSpeed(0)
- local Magic1 = game.Workspace.Main.CheckStat:InvokeServer("Magic", Player.Name)
- for i, v in pairs(game.ReplicatedStorage.ChargeParticles[Magic1]:GetChildren()) do
- local p = v:Clone()
- p.Parent = Player.Character.Torso
- end
- local Chargep = Instance.new("BodyPosition", Player.Character.HumanoidRootPart)
- Chargep.position = Player.Character.HumanoidRootPart.Position
- Chargep.Name = "Chargep"
- Chargep.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- local Chargeg = Instance.new("BodyGyro", Player.Character.HumanoidRootPart)
- Chargeg.Name = "Chargeg"
- Chargeg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
- Chargeg.D = 50
- Chargeg.P = 30000
- Chargeg.cframe = Player.Character.HumanoidRootPart.CFrame
- Player.LocalData.Move.Value = true
- ws = Player.Character.Humanoid.WalkSpeed
- jp = Player.Character.Humanoid.JumpPower
- Player.Character.Humanoid.WalkSpeed = 0
- Player.Character.Humanoid.JumpPower = 0
- MCharging2 = true
- MCharging = true
- while MCharging2 == true and Player.LocalData.Charging.Value == true do
- if Player.LocalData.MagicEnergy.Value <= 0 then
- Player.LocalData.MagicEnergy.Value = 0
- end
- Player.LocalData.MagicEnergy.Value = Player.LocalData.MagicEnergy.Value + Player.LocalData.MaxMagicEnergy.Value * 0.006
- if Player.LocalData.MagicEnergy.Value >= Player.LocalData.MaxMagicEnergy.Value then
- Player.LocalData.MagicEnergy.Value = Player.LocalData.MaxMagicEnergy.Value
- break
- end
- wait(0.5)
- end
- for i, v in pairs(Player.Character.Humanoid:GetPlayingAnimationTracks()) do
- v:Stop()
- end
- for i, v in pairs(Player.Character.Torso:GetChildren()) do
- if v.ClassName == "ParticleEmitter" then
- v:Destroy()
- end
- end
- for i, v in next, Player.Character.HumanoidRootPart:GetChildren(), nil do
- if v.Name == "Chargep" or v.Name == "Chargeg" then
- v:Destroy()
- end
- end
- Player.LocalData.Move.Value = false
- Player.Character.Humanoid.WalkSpeed = 16
- Player.Character.Humanoid.JumpPower = 50
- MCharging2 = false
- wait(2)
- MCharging = false
- end
- if actionInputState == Enum.UserInputState.End then
- for i, v in pairs(Player.Character.Humanoid:GetPlayingAnimationTracks()) do
- v:Stop()
- end
- for i, v in pairs(Player.Character.Torso:GetChildren()) do
- if v.ClassName == "ParticleEmitter" then
- v:Destroy()
- end
- end
- for i, v in next, Player.Character.HumanoidRootPart:GetChildren(), nil do
- if v.Name == "Chargep" or v.Name == "Chargeg" then
- v:Destroy()
- end
- end
- Player.LocalData.Move.Value = false
- Player.Character.Humanoid.WalkSpeed = 16
- Player.Character.Humanoid.JumpPower = 50
- MCharging2 = false
- wait(2)
- MCharging = false
- end
- end
- function LeftCtrl(actionName, actionInputState, actionInputObject)
- if actionInputState == Enum.UserInputState.Begin and Run == false then
- Run = true
- if HasAgile then
- Player.Character.Humanoid.WalkSpeed = 64
- else
- Player.Character.Humanoid.WalkSpeed = 48
- end
- if Player.Character:FindFirstChild("Animate") then
- Player.Character.Animate.Disabled = true
- Player.Character.Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=345789264"
- Player.Character.Animate.Disabled = false
- Player.LocalData.Charging2.Value = false
- while Run == true do
- wait(0.1)
- if Player.LocalData.Moving.Value == true then
- if Player.LocalData.Stamina.Value <= 0 then
- Run = false
- Player.Character.Humanoid.WalkSpeed = 16
- if Player.Character:FindFirstChild("Animate") then
- Player.Character.Animate.Disabled = true
- Player.Character.Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=180426354"
- Player.Character.Animate.Disabled = false
- Player.LocalData.Charging2.Value = true
- end
- end
- if Player.LocalData:FindFirstChild("Stamina") then
- Player.LocalData.Stamina.Value = Player.LocalData.Stamina.Value - 4
- end
- end
- end
- Player.LocalData.Stamina.Value = Player.LocalData.Stamina.Value - 1
- end
- elseif actionInputState == Enum.UserInputState.Begin and Run == true then
- Run = false
- Player.Character.Humanoid.WalkSpeed = 16
- if Player.Character:FindFirstChild("Animate") then
- Player.Character.Animate.Disabled = true
- Player.Character.Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=180426354"
- Player.Character.Animate.Disabled = false
- Player.LocalData.Charging2.Value = true
- end
- end
- end
- local Keys = {
- ["w"] = false,
- ["a"] = false,
- ["d"] = false,
- ["s"] = false,
- [" "] = false
- }
- Mouse = Player:GetMouse()
- function KeyDown(Key)
- Key = Key:lower()
- if Key == "w" or Key == "d" or Key == "a" or Key == "s" or Key == " " then
- Player.LocalData.Moving.Value = true
- if Key == " " then
- local Character = Player.Character
- if Character.Torso:findFirstChild("SwimPosition") then
- Character.Torso.SwimPosition.position = Vector3.new(0, 74, 0)
- end
- end
- Keys[Key] = true
- end
- end
- function KeyUp(Key)
- Key = Key:lower()
- if Key == " " or Key == "w" or Key == "a" or Key == "s" or Key == "d" then
- local Detect = false
- local Count = 0
- Keys[Key] = false
- for i, v in next, Keys, nil do
- if v == false then
- Count = Count + 1
- end
- end
- if Count >= 5 then
- Player.LocalData.Moving.Value = false
- end
- end
- end
- Mouse.KeyDown:connect(KeyDown)
- Mouse.KeyUp:connect(KeyUp)
- Shop()
- LevelUpdate()
- Party()
- EnergyUpdate()
- StaminaUpdate()
- HealthUpdate()
- ExperienceUpdate()
- JewelsUpdate()
- FirstMagic()
- SecondMagic()
- ThirdMagic()
- Settings()
- HealthUpdate2()
- EnergyUpdate2()
- Inventory()
- ShowB()
- SaveMoveSet()
- LoadMoveset()
- SkillPoints()
- Twitter()
- DamageOutput()
- Save()
- ChatChange()
- Guild()
- Swim()
- ClearQuest()
- game:GetService("UserInputService").GamepadConnected:connect(function(gamepad)
- ContextActionService:BindAction("Run", LeftCtrl, true, Enum.KeyCode.ButtonL3)
- ContextActionService:BindAction("CloseUI", CloseUI, true, Enum.KeyCode.ButtonB)
- ContextActionService:BindAction("Jump", HighJump, true, Enum.KeyCode.ButtonY)
- ContextActionService:BindAction("Charging", ChargingEnergy, true, Enum.KeyCode.ButtonX)
- end)
- game:GetService("UserInputService").GamepadDisconnected:connect(function(gamepad)
- ContextActionService:BindAction("Run", LeftCtrl, true, Enum.KeyCode.LeftControl)
- ContextActionService:BindAction("Jump", HighJump, true, Enum.KeyCode.T)
- ContextActionService:BindAction("Charging", ChargingEnergy, true, Enum.KeyCode.LeftShift)
- end)
- if game:GetService("UserInputService").GamepadEnabled then
- ContextActionService:BindAction("Run", LeftCtrl, true, Enum.KeyCode.ButtonL3)
- ContextActionService:BindAction("CloseUI", CloseUI, true, Enum.KeyCode.ButtonB)
- ContextActionService:BindAction("Jump", HighJump, true, Enum.KeyCode.ButtonY)
- ContextActionService:BindAction("Charging", ChargingEnergy, true, Enum.KeyCode.ButtonX)
- else
- ContextActionService:BindAction("Run", LeftCtrl, true, Enum.KeyCode.LeftControl)
- ContextActionService:BindAction("Jump", HighJump, true, Enum.KeyCode.T)
- ContextActionService:BindAction("Charging", ChargingEnergy, true, Enum.KeyCode.LeftShift)
- ContextActionService:BindAction("CommandBar", CommandBar, false, Enum.KeyCode[KeyCode])
- end
- ContextActionService:BindAction("FrontFlip", FrontFlip, false, Enum.KeyCode.R)
- ContextActionService:BindAction("BackFlip", BackFlip, false, Enum.KeyCode.G)
- ContextActionService:BindAction("RightWheel", RightWheel, false, Enum.KeyCode.H)
- ContextActionService:BindAction("LeftWheel", LeftWheel, false, Enum.KeyCode.F)
- script.Parent.Commandbox.FocusLost:connect(function(Ep)
- if Ep == true and game.Workspace.ServerEvents.CheckAdmin:InvokeServer(Player.Name) == true then
- do
- local Message = script.Parent.Commandbox.Text
- local Count = 0
- local Command = ""
- local Type = ""
- local Type2 = ""
- for i in string.gmatch(Message, "%S+") do
- Count = Count + 1
- if Count == 1 then
- Command = i
- elseif Count == 2 then
- Type = i
- elseif Count == 3 then
- Type2 = i
- end
- end
- local success, filteredMessage = pcall(function()
- return ChatService:FilterStringForBroadcast(Message, Player)
- end)
- if not success then
- filteredMessage = "Nope"
- end
- Admin.RunCommand(Command, Prefix, Player.Name, Type, Type2, filteredMessage)
- script.Parent.Commandbox.Visible = false
- end
- end
- end)
- local Level = game.Workspace.Main.CheckStat:InvokeServer("Level", Player.Name)
- if MaxLevel < Level then
- Player:Kick("Please stop exploiting on roblox")
- end
- script.Parent.Profile.PlayerImage.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username=" .. Player.Name
- if Leader ~= "" then
- game.Workspace.Main.ParentGui:FireServer(Player.Name, "PartyMember", "Main", nil, nil)
- end
- local Setting2 = game.Workspace.Main.CheckStat:InvokeServer("Setting2", Player.Name)
- if Setting2 == "false" then
- elseif Setting2 == "true" then
- if Player.Character.Head:FindFirstChild("Level") then
- Player.Character.Head.Level.Level.Text = "Level " .. Level
- else
- local FLevel = Instance.new("BillboardGui", Player.Character.Head)
- FLevel.Name = "Level"
- FLevel.Size = UDim2.new(5, 0, 5, 0)
- FLevel.StudsOffset = Vector3.new(0, 4, 0)
- local FTLevel = Instance.new("TextLabel", FLevel)
- FTLevel.BackgroundTransparency = 1
- FTLevel.Name = "Level"
- FTLevel.Size = UDim2.new(0.5, 0, 0.2, 0)
- FTLevel.Position = UDim2.new(0.25, 0, 0.75, 0)
- FTLevel.TextColor3 = Color3.new(0, 0.6666666666666666, 1)
- FTLevel.TextStrokeColor3 = Color3.new(0, 0, 0)
- FTLevel.TextStrokeTransparency = 0
- FTLevel.Font = "SourceSansLight"
- FTLevel.Text = "Level " .. Level
- FTLevel.TextScaled = true
- local GuildImage = Instance.new("ImageLabel", FLevel)
- GuildImage.BackgroundTransparency = 1
- GuildImage.Name = "Guild"
- GuildImage.Size = UDim2.new(0.5, 0, 0.5, 0)
- GuildImage.Position = UDim2.new(0.25, 0, 0.25, 0)
- for i, v in pairs(Guild2) do
- if Player:IsInGroup(v.GroupId) then
- GuildImage.Image = "rbxassetid://" .. v.GroupLogo
- end
- end
- end
- end
- Player.Character.Humanoid.HealthChanged:connect(function()
- HealthUpdate()
- HealthUpdate2()
- end)
- Player.LocalData.MagicEnergy.Changed:connect(function()
- if Charging == false then
- AutoCharge()
- end
- EnergyUpdate()
- EnergyUpdate2()
- end)
- Player.LocalData.MaxMagicEnergy.Changed:connect(function()
- if Charging == false then
- AutoCharge()
- end
- EnergyUpdate()
- EnergyUpdate2()
- end)
- Player.LocalData.Stamina.Changed:connect(function()
- if Charging2 == false then
- AutoChargeStamina()
- end
- StaminaUpdate()
- end)
- Player.LocalData.Charging.Changed:connect(function()
- if Charging == false then
- AutoCharge()
- end
- EnergyUpdate()
- EnergyUpdate2()
- end)
- Player.LocalData.MaxStamina.Changed:connect(function()
- if Charging2 == false then
- AutoChargeStamina()
- end
- StaminaUpdate()
- end)
- PlayMusic()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement