Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- params : ...
- local plr = game.Players.LocalPlayer
- local RunService = game:GetService("RunService").RenderStepped
- local UserInput = game:GetService("UserInputService")
- local EG = require(game.ReplicatedStorage.Modules:WaitForChild("EP"))
- local HoverModule = require(game.ReplicatedStorage.Modules:WaitForChild("Hover"))
- local Time = require(game.ReplicatedStorage.Modules:WaitForChild("Schedule"))
- local Audio = require(game.ReplicatedStorage.Modules:WaitForChild("Audio"))
- local TeleHover = require(game.ReplicatedStorage.Modules:WaitForChild("TeleHover"))
- local cam = game.Workspace.CurrentCamera
- local mouse = (plr:GetMouse())
- local DuelHoldAnim = nil
- local Shake = 0
- local flagwinds = plr.PlayerGui.Client.FX.FlagWinds
- local PFStand = 0
- flagwinds:Play()
- local Unequips = 0
- local WandEvent = (game.ReplicatedStorage.Events:WaitForChild("WandEvent"))
- local SpellConnection = nil
- _G.q1 = false
- local EnableHumanoid = function(Humanoid, b)
- for _,v in next do
- if v ~= Enum.HumanoidStateType.None and v ~= Enum.HumanoidStateType.Dead then
- Humanoid:SetStateEnabled(v, b)
- end
- end
- end
- WandEvent.OnClientEvent:connect(function(eventType, args)
- if eventType == 1 then
- plr.Character.Humanoid:UnequipTools()
- game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
- local anim = plr.Character.Humanoid:LoadAnimation(game.ReplicatedStorage.Animations.Character.Hit)
- anim:Play(0)
- Unequips = Unequips + 1
- wait(0.1)
- anim:Stop(0.6)
- anim:Destroy()
- wait(1.5)
- Unequips = Unequips - 1
- if Unequips <= 0 and not plr.Character:FindFirstChild("Posessed") then
- game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
- end
- else
- do
- if eventType == 2 then
- plr.Character.Humanoid.PlatformStand = true
- PFStand = PFStand + 1
- plr.Character.PrimaryPart.Velocity = args
- wait(0.8)
- PFStand = PFStand - 1
- if PFStand <= 0 then
- plr.Character.Humanoid.PlatformStand = false
- end
- else
- if eventType == 3 then
- plr.Character.Humanoid.PlatformStand = true
- PFStand = PFStand + 1
- plr.Character.PrimaryPart.CFrame = plr.Character.PrimaryPart.CFrame * CFrame.Angles(math.pi / 2, 0, 0)
- wait(1.5)
- PFStand = PFStand - 1
- if PFStand <= 0 then
- plr.Character.Humanoid.PlatformStand = false
- end
- else
- -- DECOMPILER ERROR at PC141: Unhandled construct in 'MakeBoolean' P1
- if eventType == 4 and cam.CFrame.p - args.magnitude <= 35 then
- Shake = 80
- end
- end
- end
- if eventType == 5 then
- EnableHumanoid(plr.Character.Humanoid, false)
- plr.Character.Humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
- plr.Character.HumanoidRootPart.CanCollide = false
- plr.Character.HumanoidRootPart.Anchored = true
- else
- if eventType == 6 then
- EnableHumanoid(plr.Character.Humanoid, true)
- plr.Character.Humanoid:ChangeState(Enum.HumanoidStateType.GettingUp)
- plr.Character.HumanoidRootPart.Anchored = false
- else
- if eventType == 7 then
- plr.Character.HumanoidRootPart.Velocity = Vector3.new(0, 70, 0)
- else
- if eventType == 8 then
- game.Workspace.Gravity = 0
- plr.Character.Humanoid.PlatformStand = true
- plr.Character.Head.Velocity = args
- PFStand = PFStand + 1
- wait(5.6)
- PFStand = PFStand - 1
- game.Workspace.Gravity = 196.2
- if PFStand <= 0 then
- plr.Character.Humanoid.PlatformStand = false
- end
- else
- -- DECOMPILER ERROR at PC250: Unhandled construct in 'MakeBoolean' P1
- if eventType == 9 and DuelHoldAnim == nil then
- DuelHoldAnim = plr.Character.Humanoid:LoadAnimation(game.ReplicatedStorage.Animations.Character.DuelHold)
- DuelHoldAnim:Play()
- _G.q1 = true
- end
- end
- end
- end
- end
- -- DECOMPILER ERROR at PC264: Unhandled construct in 'MakeBoolean' P1
- if eventType == 10 and DuelHoldAnim ~= nil then
- DuelHoldAnim:Stop()
- DuelHoldAnim:Destroy()
- DuelHoldAnim = nil
- _G.q1 = false
- end
- if eventType == 11 then
- plr.PlayerGui.Client.warning.Visible = true
- wait(5)
- plr.PlayerGui.Client.warning.Visible = false
- else
- if eventType == 12 then
- plr.PlayerScripts.ControlScript.Disabled = true
- plr.Character.Humanoid.WalkToPoint = args
- plr.PlayerGui.Client.imperio.Visible = true
- game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
- else
- if eventType == 13 then
- plr.PlayerScripts.ControlScript.Disabled = false
- plr.Character.Humanoid.WalkToPoint = plr.Character.HumanoidRootPart.Position
- plr.PlayerGui.Client.imperio.Visible = false
- game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
- else
- -- DECOMPILER ERROR at PC347: Unhandled construct in 'MakeBoolean' P1
- if eventType == 14 and SpellConnection == nil then
- _G.q1 = true
- DuelHoldAnim = plr.Character.Humanoid:LoadAnimation(game.ReplicatedStorage.Animations.Character.DuelHold)
- DuelHoldAnim:Play()
- SpellConnection = mouse.Button1Down:connect(function()
- WandEvent:FireServer("imperio", {args, mouse.Hit.p})
- end)
- wait(10)
- _G.q1 = false
- SpellConnection:disconnect()
- SpellConnection = nil
- DuelHoldAnim:Stop()
- DuelHoldAnim:Destroy()
- DuelHoldAnim = nil
- end
- end
- end
- end
- if eventType == 15 then
- plr.Character.PrimaryPart.CFrame = plr.Character.PrimaryPart.CFrame * CFrame.Angles(math.pi / 2, 0, 0)
- for i = 1, 6 do
- wait(0.4)
- plr.Character.Humanoid.PlatformStand = true
- plr.Character.Head.Velocity = Vector3.new(math.random(-5, 5) * 2.5, 0, math.random(-5, 5) * 2.5)
- wait(0.4)
- plr.Character.Humanoid.PlatformStand = false
- end
- end
- end
- end
- end)
- _G.Shake = function()
- Shake = 80
- end
- local Speed = 0
- NumLerp = function(A, B, Alpha)
- return A + (B - A) * Alpha
- end
- local WindsUpdate = function()
- if plr.Character.PrimaryPart ~= nil then
- Speed = math.clamp(NumLerp(Speed, plr.Character.PrimaryPart.Velocity.magnitude / 35, 0.03), 0, 1.3)
- flagwinds.Volume = Speed
- flagwinds.PlaybackSpeed = Speed
- -- DECOMPILER ERROR at PC69: Unhandled construct in 'MakeBoolean' P1
- if plr.Character.HumanoidRootPart:FindFirstChild("FlightVelocity") and flagwinds.Volume >= 0.5 then
- cam.CoordinateFrame = cam.CoordinateFrame * CFrame.fromEulerAnglesXYZ(math.sin(tick() * 20) * 0.002 * (0.5 - flagwinds.Volume), math.sin(tick() * 30) * 0.002 * (0.5 - flagwinds.Volume), 0)
- cam.FieldOfView = 65 + (flagwinds.Volume - 0.5) * 20
- end
- flagwinds.Volume = 0
- if Shake > 0 then
- Shake = Shake - 2
- cam.CoordinateFrame = cam.CoordinateFrame * CFrame.fromEulerAnglesXYZ(math.sin(tick() * 15) * 0.002 * (Shake / 20), math.sin(tick() * 25) * 0.002 * (Shake / 20), 0)
- end
- end
- end
- local getAngle = function()
- local targ = game.Workspace.CurrentCamera.CFrame * CFrame.new(0, 0, -1000)
- local a = plr.Character.LowerTorso.Position - targ.p
- local b = plr.Character.LowerTorso.CFrame.lookVector
- local r = plr.Character.LowerTorso.CFrame.rightVector
- local dot = a:Dot(b)
- local dotr = a:Dot(r)
- local mag = Vector3.new(a.x, 0, a.z).magnitude * Vector3.new(b.x, 0, b.z).magnitude
- local yangle = -math.sin((-math.acos(dot / mag) + math.pi) * math.sign(dotr))
- if yangle < 4 then
- return CFrame.Angles(a.unit.y * 0.2, yangle * 0.65, 0)
- else
- return CFrame.Angles(a.unit.y * 0.2, 0, 0)
- end
- end
- local AimCharacter = function()
- if plr.Character ~= nil and plr.Character:FindFirstChild("UpperTorso") and plr.Character.UpperTorso:FindFirstChild("Waist") then
- local a = getAngle()
- if a ~= nil then
- plr.Character.UpperTorso.Waist.C1 = plr.Character.UpperTorso.Waist.C1:lerp(CFrame.new(0, plr.Character.UpperTorso.Waist.C1.Y, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * a, 0.1)
- plr.Character.Head.Neck.C1 = plr.Character.Head.Neck.C1:lerp(CFrame.new(0, plr.Character.Head.Neck.C1.Y, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * a, 0.1)
- end
- end
- end
- local UpdateOnRender = function(deltaTime)
- EG:UpdateAll(deltaTime)
- WindsUpdate()
- AimCharacter()
- end
- RunService:connect(UpdateOnRender)
- local PlayerChatted = function(txt)
- local t = string.lower(txt)
- if t == "up!" or t == "up" then
- if not plr.Character:FindFirstChild("Magic Broom") and not plr.Character:FindFirstChild("Starcaller Broom") and not plr.Character:FindFirstChild("Crooked Broom") then
- local tool = plr.Character:FindFirstChild("Important Broom")
- end
- if tool and not plr.Character.HumanoidRootPart:FindFirstChild("FlightVelocity") then
- if tool.Name == "Magic Broom" then
- HoverModule.Fly(30)
- else
- HoverModule.Fly()
- end
- end
- end
- end
- plr.Chatted:connect(PlayerChatted)
- local gui = plr:WaitForChild("PlayerGui"):WaitForChild("Client")
- local TweenColor = function(image, toggle)
- if toggle then
- game:GetService("TweenService"):Create(image, TweenInfo.new(0.15), {ImageColor3 = Color3.new(1, 1, 1)})
- end
- end
- local buts = {"Anims", "Inventory", "Character", "Store"}
- for i = 1, 4 do
- local tw = game:GetService("TweenService"):Create(gui.SideFrame[buts[i]], TweenInfo.new(0.5), {ImageColor3 = Color3.new(1, 1, 1)})
- do
- do
- local tw2 = game:GetService("TweenService"):Create(gui.SideFrame[buts[i]], TweenInfo.new(0.5), {ImageColor3 = Color3.new(0.71372549019608, 0.71372549019608, 0.71372549019608)})
- do
- gui.SideFrame[buts[i]].MouseEnter:connect(function()
- tw:Play()
- end)
- gui.SideFrame[buts[i]].MouseLeave:connect(function()
- tw2:Play()
- end)
- end
- -- DECOMPILER ERROR at PC190: LeaveBlock: unexpected jumping out DO_STMT
- end
- end
- end
- local buts2 = {"Points", "Money"}
- do
- for i = 1, 2 do
- local tw = game:GetService("TweenService"):Create(gui.SideFrame[buts2[i]], TweenInfo.new(0.5, {ImageColor3 = Color3.new(1, 0.86666666666667, 0.3843137254902)})
- local tw2 = game:GetService("TweenService):Create(gui.SideFrame[buts2[i], TweenInfo.new(0.5), {ImageColor3 = Color3.new(0.79607843137255, 0.68235294117647, 0.45490196078431)})
- gui.SideFrame[buts2[i]].MouseEnter:connect(function()
- tw:Play()
- gui.SideFrame[buts2[i]].when.Visible = true
- end)
- gui.SideFrame[buts2[i]].MouseLeave:connect(function()
- tw2:Play()
- gui.SideFrame[buts2[i]].when.Visible = false
- end)
- end
- end
- require(game.ReplicatedStorage.Modules:WaitForChild("AnimationsGui"))
- gui.SideFrame.Anims.MouseButton1Click:connect(function()
- gui.SideFrame.Animations.Visible = not gui.SideFrame.Animations.Visible
- plr.PlayerGui.Client.FX.click:Play()
- end)
- _G.TH = function(toggle)
- spawn(function()
- TeleHover.Fly(toggle)
- end)
- end
- _G.BH = function(toggle)
- spawn(function()
- HoverModule.Fly(toggle)
- end)
- end
- local cdf = gui.Cooldown
- local energy = plr:WaitForChild("Energy")
- local EnergyUpdate = function()
- cdf.Frame:TweenSize(UDim2.new(energy.Value / 15, 0, 1, 0), "Out", "Back", 1, true)
- cdf.amount.Text = energy.Value .. "/15"
- if energy.Value >= 15 and not cdf.no.Visible then
- cdf:TweenPosition(UDim2.new(0, -250, 1, -30), "Out", "Quad", 0.3, true)
- else
- cdf:TweenPosition(UDim2.new(0, 30, 1, -30), "Out", "Quad", 0.3, true)
- end
- end
- energy.Changed:connect(EnergyUpdate)
- do
- for _,v in pairs(game.Workspace.StaticNPCs:GetChildren()) do
- v.Humanoid:LoadAnimation(game.ReplicatedStorage.Animations.NPC[v.Humanoid.Animation.Value]):Play()
- end
- end
- require(game.ReplicatedStorage.Modules.StoreGui)
- require(game.ReplicatedStorage.Modules.StoreGui2)
- gui.SideFrame.Store.MouseButton1Click:connect(function()
- gui.StoreFrame.Visible = not gui.StoreFrame.Visible
- plr.PlayerGui.Client.FX.click:Play()
- gui.InventoryFrame.Visible = false
- gui.MoreCoinsFrame.Visible = false
- gui.PointsFrame.Visible = false
- gui.Clothing.Visible = false
- gui.Bio.Visible = false
- end)
- gui.SideFrame.Points.MouseButton1Click:connect(function()
- gui.PointsFrame.Visible = not gui.PointsFrame.Visible
- plr.PlayerGui.Client.FX.click:Play()
- gui.InventoryFrame.Visible = false
- gui.MoreCoinsFrame.Visible = false
- gui.StoreFrame.Visible = false
- gui.Clothing.Visible = false
- gui.Bio.Visible = false
- end)
- gui.SideFrame.Money.MouseButton1Click:connect(function()
- gui.MoreCoinsFrame.Visible = not gui.MoreCoinsFrame.Visible
- end)
- gui.MoreCoinsFrame.Close.MouseButton1Click:connect(function()
- gui.MoreCoinsFrame.Visible = false
- end)
- gui.MoreCoinsFrame.Close.MouseEnter:connect(function()
- gui.MoreCoinsFrame.Close.desc.TextColor3 = Color3.new(1, 0.49019607843137, 0.50588235294118)
- end)
- gui.MoreCoinsFrame.Close.MouseLeave:connect(function()
- gui.MoreCoinsFrame.Close.desc.TextColor3 = Color3.new(0.72941176470588, 0.35686274509804, 0.36470588235294)
- end)
- local ops = {102923685, 102923807, 102924279, 102924378}
- do
- for i = 1, 4 do
- gui.MoreCoinsFrame.Frame[i].MouseButton1Click:connect(function()
- game:GetService("MarketplaceService"):PromptProductPurchase(plr, ops[i])
- end)
- gui.MoreCoinsFrame.Frame[i].MouseEnter:connect(function()
- gui.MoreCoinsFrame.Frame[i].ImageColor3 = Color3.new(0.9, 0.9, 1)
- end)
- gui.MoreCoinsFrame.Frame[i].MouseLeave:connect(function()
- gui.MoreCoinsFrame.Frame[i].ImageColor3 = Color3.new(0.30588235294118, 0.37254901960784, 0.52941176470588)
- end)
- end
- plr:WaitForChild("PlayerData").Currency.Changed:connect(function()
- plr.PlayerGui.Client.Money.how.Text = plr.PlayerData.Currency.Value
- plr.PlayerGui.Client.StoreFrame.funds.funds.Text = plr.PlayerData.Currency.Value
- plr.PlayerGui.Client.StoreFrame.InfoFrame.Frame.Cost.ImageLabel.Position = UDim2.new(0.5, plr.PlayerGui.Client.StoreFrame.InfoFrame.Frame.Cost.TextBounds.X / -2, 0, 1)
- end)
- plr.PlayerData.Points.Changed:connect(function()
- plr.PlayerGui.Client.Points.how.Text = plr.PlayerData.Points.Value
- end)
- plr.PlayerGui.Client.SideFrame.Money.how.Text = plr.PlayerData.Currency.Value
- plr.PlayerGui.Client.StoreFrame.funds.funds.Text = plr.PlayerData.Currency.Value
- plr.PlayerGui.Client.StoreFrame.funds.funds.ImageLabel.Position = UDim2.new(0., plr.PlayerGui.Client.StoreFrame.funds.funds.TextBounds.X / -, , 1)
- plr.PlayerGui.Client.SideFrame.Points.how.Text = plr.PlayerData.Points.Value
- local PaymentTime = 300
- do
- local RewardWaitTime = os.time() - plr:WaitForChild("LLG).Value
- spawn(function()
- while 1 do
- wait(1)
- local sec = PaymentTime - math.floor(PaymentTime / 60) * 60
- local add0 = ""
- if sec < 10 then
- add0 = "0"
- end
- gui.SideFrame.Money.when.Text = "Next payment in: " .. math.floor(PaymentTime / 60) .. ":" .. add0 .. PaymentTime - math.floor(PaymentTime / 60) * 60
- gui.SideFrame.Points.when.Text = "Next reward in: " .. 18 - math.floor((RewardWaitTime - game.Workspace.DistributedGameTime) / 60 / 60) .. " hours"
- PaymentTime = PaymentTime - 1
- if PaymentTime <= 0 then
- PaymentTime = 300
- game.ReplicatedStorage.Events.CoinsEvent:FireServer()
- end
- if PaymentTime % 2 == 0 then
- plr.Energy.Value = math.clamp(plr.Energy.Value + 1, 0, 15)
- end
- end
- end)
- require(game.ReplicatedStorage.Modules.RewardClien)
- gui.SideFrame.Inventory.MouseButton1Click:connect(function()
- gui.InventoryFrame.Visible = not gui.InventoryFrame.Visible
- plr.PlayerGui.Client.FX.click:Play()
- gui.MoreCoinsFrame.Visible = false
- gui.PointsFrame.Visible = false
- gui.StoreFrame.Visible = false
- gui.Clothing.Visible = false
- gui.Bio.Visible = false
- end)
- local isf = gui.InventoryFrame.ScrollingFrame
- local Items = require(game.ReplicatedStorage.Modules.Store).Items
- local Sample = game.ReplicatedStorage.Sample
- local SelectedItem = nil
- local SelectedCatagory = 1
- local SelectedId = nil
- local UpdateInfoFrame = function()
- gui.InventoryFrame.InfoFrame.Frame.Title.Text = SelectedItem[5]
- gui.InventoryFrame.InfoFrame.Frame.Desc.Text = SelectedItem[1]
- gui.InventoryFrame.InfoFrame.Frame.Title.Visible = true
- gui.InventoryFrame.InfoFrame.Frame.Equip.Visible = true
- gui.InventoryFrame.InfoFrame.Frame.Desc.Visible = true
- if string.find(plr.PlayerData.Equipped.Value, SelectedId) == nil then
- gui.InventoryFrame.InfoFrame.Frame.Equip.TextLabel.Text = "Equip"
- else
- gui.InventoryFrame.InfoFrame.Frame.Equip.TextLabel.Text = "Unequip"
- end
- end
- local InventoryCatagoryChanged = function(cat)
- isf:ClearAllChildren()
- local qa = Instance.new("UIGridLayout")
- qa.CellPadding = UDim2.new(0, 5, 0, 5)
- qa.CellSize = UDim2.new(0, 95, 0, 95)
- qa.Parent = isf
- SelectedItem = nil
- SelectedCatagory = cat
- gui.InventoryFrame.InfoFrame.Frame.Title.Visible = false
- gui.InventoryFrame.InfoFrame.Frame.Equip.Visible = false
- gui.InventoryFrame.InfoFrame.Frame.Desc.Visible = false
- local sizecount = 0
- for i,v in pairs(Items[cat]) do
- do
- if string.find(plr.PlayerData.Inventory.Value, i .. ",") ~= nil then
- do
- local b = Sample:Clone()
- do
- b.ImageLabel.Image = v[3]
- sizecount = sizecount + 1
- b.ImageColor3 = Color3.new(0.11764705882353, 0.14117647058824, 0.30196078431373)
- if v[4] ~= nil then
- b.ImageLabel.ImageRectSize = Vector2.new(256, 256)
- b.ImageLabel.ImageRectOffset = v[4]
- end
- b.Parent = isf
- b.Name = v[5]
- b.MouseButton1Click:connect(function()
- SelectedId = i
- b.ImageColor3 = Color3.new(1, 0.94117647058824, 0.48627450980392)
- if SelectedItem ~= nil then
- b.Parent[SelectedItem[5]].ImageColor3 = Color3.new(0.11764705882353, 0.14117647058824, 0.30196078431373)
- end
- SelectedItem = v
- UpdateInfoFrame()
- end)
- end
- -- DECOMPILER ERROR at PC106: LeaveBlock: unexpected jumping out IF_THEN_STMT
- -- DECOMPILER ERROR at PC106: LeaveBlock: unexpected jumping out IF_STMT
- end
- end
- end
- end
- isf.CanvasSize = UDim2.new(0, 0, 0, (sizecount) / 3 * 100)
- end
- InventoryCatagoryChanged(1)
- for i = 1, 5 do
- gui.InventoryFrame.Frame[i].MouseButton1Click:connect(function()
- InventoryCatagoryChanged(i)
- end)
- gui.InventoryFrame.Frame[i].MouseEnter:connect(function()
- gui.InventoryFrame.Frame[i].ImageColor3 = Color3.new(1, 0.96078431372549, 0.81176470588235)
- end)
- gui.InventoryFrame.Frame[i].MouseLeave:connect(function()
- gui.InventoryFrame.Frame[i].ImageColor3 = Color3.new(1, 0.92549019607843, 0.54901960784314)
- end)
- end
- gui.InventoryFrame.InfoFrame.Frame.Equip.MouseButton1Click:connect(function()
- if string.find(plr.PlayerData.Equipped.Value, SelectedId) == nil then
- gui.InventoryFrame.InfoFrame.Frame.Equip.TextLabel.Text = "Unequip"
- else
- gui.InventoryFrame.InfoFrame.Frame.Equip.TextLabel.Text = "Equip"
- end
- game.ReplicatedStorage.Events.InventoryEvent:FireServer(SelectedCatagory, SelectedId)
- end)
- local c = game.Players.LocalPlayer:WaitForChild("PlayerGui):WaitForChild("BubbleChat)
- c.ChildAdded:connect(function(cha)
- if game.Players[cha.Adornee.Parent.Name]:FindFirstChild("VIP") then
- cha:WaitForChild("BillboardFrame").ChildAdded:connect(function(ch)
- ch.ImageColor3 = Color3.new(0.23921568627451, 0.23921568627451, 0.23921568627451)
- ch:WaitForChild("ChatBubbleTail").ImageColor3 = Color3.new(0.23921568627451, 0.23921568627451, 0.23921568627451)
- ch.BubbleText.TextColor3 = Color3.new(0.97254901960784, 0.85098039215686, 0.42745098039216)
- end)
- cha.BillboardFrame:WaitForChild("ChatBubble).ImageColor3 = Color3.new(0.2392156862745, 0.23921568627451, 0.23921568627451)
- cha.BillboardFrame.ChatBubble:WaitForChild("ChatBubbleTail).ImageColor3 = Color3.new(0.2392156862745, 0.23921568627451, 0.23921568627451)
- cha.BillboardFrame.ChatBubble.BubbleText.TextColor3 = Color3.new(0.9725490196078, 0.85098039215686, 0.42745098039216)
- cha.BillboardFrame.SmallTalkBubble.ImageColor3 = Color3.new(0.2392156862745, 0.23921568627451, 0.23921568627451)
- cha.BillboardFrame.SmallTalkBubble.BubbleText.TextColor3 = Color3.new(0.9725490196078, 0.85098039215686, 0.42745098039216)
- cha.BillboardFrame.SmallTalkBubble.ChatBubbleTailFrame.ChatBubbleTail.ImageColor3 = Color3.new(0.2392156862745, 0.23921568627451, 0.23921568627451)
- end
- end)
- local f = game.Players.LocalPlayer:WaitForChild("PlayerGui):WaitForChild("Chat):WaitForChild("Frame):WaitForChild("ChatChannelParentFrame):WaitForChild("Frame_MessageLogDisplay):WaitForChild("Scroller)
- f.ChildAdded:connect(function(c)
- local te = c.TextLabel.TextButton.Text
- if game.Players[string.sub(te, 2, string.len(te) - 2)]:FindFirstChild("VIP") then
- c.TextLabel.TextColor3 = Color3.new(0.97254901960784, 0.85098039215686, 0.42745098039216)
- end
- end)
- local intg = plr.PlayerGui:WaitForChild("Intro)
- intg.Enabled = true
- for i = 1, 4 do
- intg.Frame.Frame[i].MouseEnter:connect(function()
- intg.Frame.Frame[i].ImageColor3 = Color3.new(1, 1, 1)
- end)
- intg.Frame.Frame[i].MouseLeave:connect(function()
- intg.Frame.Frame[i].ImageColor3 = Color3.new(0.30588235294118, 0.37254901960784, 0.52941176470588)
- end)
- intg.Frame.Frame[i].MouseButton1Click:connect(function()
- intg.Frame.Visible = false
- intg.Frame2.Visible = true
- game.ReplicatedStorage.Events.TeamsEvent:FireServer(i)
- end)
- end
- for i = 1, 5 do
- intg.Frame2.Frame[i].MouseEnter:connect(function()
- intg.Frame2.Frame[i].ImageColor3 = Color3.new(0.47843137254902, 0.5843137254902, 0.82745098039216)
- end)
- intg.Frame2.Frame[i].MouseLeave:connect(function()
- intg.Frame2.Frame[i].ImageColor3 = Color3.new(0.30588235294118, 0.37254901960784, 0.52941176470588)
- end)
- intg.Frame2.Frame[i].MouseButton1Click:connect(function()
- intg.Frame2.Visible = false
- intg.Enabled = false
- intg.Frame.Visible = true
- game.ReplicatedStorage.Events.TeamsEvent:FireServer(nil, i)
- end)
- end
- intg.Frame2.Frame["6"].MouseEnter:connect(function()
- intg.Frame2.Frame["6"].ImageColor3 = Color3.new(0.59607843137255, 0.59607843137255, 0.59607843137255)
- end)
- intg.Frame2.Frame["6"].MouseLeave:connect(function()
- intg.Frame2.Frame["6"].ImageColor3 = Color3.new(0.47843137254902, 0.47843137254902, 0.47843137254902)
- end)
- intg.Frame2.Frame["6"].MouseButton1Click:connect(function()
- intg.Frame2.Visible = false
- intg.Enabled = false
- intg.Frame.Visible = true
- game.ReplicatedStorage.Events.TeamsEvent:FireServer(nil, 6)
- end)
- local cgui = gui:WaitForChild("Clothing)
- require(game.ReplicatedStorage.Modules.ClothingGu)
- gui.SideFrame.Character.MouseButton1Click:connect(function()
- cgui.Visible = not cgui.Visible
- gui.Bio.Visible = cgui.Visible
- plr.PlayerGui.Client.FX.click:Play()
- if plr.PlayerData.PlayerName.Value == plr.Name then
- gui.Bio.PlayerName.Text = "Enter your roleplay Name"
- else
- gui.Bio.PlayerName.Text = plr.PlayerData.PlayerName.Value
- gui.Bio.PlayerName.ClearTextOnFocus = false
- end
- if plr.PlayerData.PlayerDesc.Value == "" then
- gui.Bio.PlayerRole.Text = "Describe yourself (e.g; \"student, knows a lot of spells\")"
- else
- gui.Bio.PlayerRole.Text = plr.PlayerData.PlayerDesc.Value
- gui.Bio.PlayerRole.ClearTextOnFocus = false
- end
- gui.InventoryFrame.Visible = false
- gui.MoreCoinsFrame.Visible = false
- gui.PointsFrame.Visible = false
- gui.StoreFrame.Visible = false
- end)
- local clickedfinish = false
- gui.Bio.TextButton.MouseButton1Down:connect(function()
- if not clickedfinish then
- clickedfinish = true
- local pn, pd = nil, nil
- if gui.Bio.PlayerName.Text ~= "Enter your roleplay Name" then
- pn = gui.Bio.PlayerName.Text
- end
- if gui.Bio.PlayerRole.Text ~= "Describe yourself (e.g; \"student, can fly, helps people\")" then
- pd = gui.Bio.PlayerRole.Text
- end
- game.ReplicatedStorage.Events.CharacterEditEvent:FireServer(pn, pd)
- plr.PlayerGui.Client.Enabled = true
- wait(1)
- clickedfinish = false
- end
- end)
- local cam = game.Workspace.CurrentCamera
- local UpdateUI = function()
- if cam.ViewportSize.Y <= 452 then
- local size = cam.ViewportSize.Y / 452
- cgui.Cats.UIScale.Scale = size
- gui.StoreFrame.UIScale.Scale = size - 0.075
- gui.PointsFrame.UIScale.Scale = size - 0.075
- gui.InventoryFrame.UIScale.Scale = size - 0.075
- cgui.ScrollingFrame.UIGridLayout.CellSize = UDim2.new(0, 95 * size - 0.1, 0, 95 * size - 0.1)
- else
- do
- cgui.Cats.UIScale.Scale = 1
- gui.StoreFrame.UIScale.Scale = 1
- gui.PointsFrame.UIScale.Scale = 1
- gui.InventoryFrame.UIScale.Scale = 1
- cgui.ScrollingFrame.UIGridLayout.CellSize = UDim2.new(0, 85, 0, 85)
- if cam.ViewportSize.X < 965 then
- gui.SideFrame.Money.Position = UDim2.new(1, -20, 1, -90)
- gui.SideFrame.Points.Position = UDim2.new(1, -90, 1, -90)
- gui.SideFrame.UIScale.Scale = cam.ViewportSize.X / 1144
- else
- if cam.ViewportSize.X < 1144 then
- gui.SideFrame.UIScale.Scale = cam.ViewportSize.X / 1144
- gui.SideFrame.Points.Position = UDim2.new(1, -370, 1, -20)
- gui.SideFrame.Money.Position = UDim2.new(1, -300, 1, -20)
- else
- gui.SideFrame.UIScale.Scale = 1
- gui.SideFrame.Points.Position = UDim2.new(1, -370, 1, -20)
- gui.SideFrame.Money.Position = UDim2.new(1, -300, 1, -20)
- end
- end
- end
- end
- end
- UpdateUI()
- cam:GetPropertyChangedSignal("ViewportSize):connect(UpdateU)
- local lunchg = game.Workspace.LunchPart.MenuItems
- for _,v in pairs(lunchg.Breakfast:GetChildren() do
- v.Purchase.MouseEnter:connect(function()
- v.Purchase.ImageColor3 = Color3.new(1, 0.98039215686275, 0.43137254901961)
- end)
- v.Purchase.MouseLeave:connect(function()
- v.Purchase.ImageColor3 = Color3.new(1, 0.86274509803922, 0.31372549019608)
- end)
- v.Purchase.MouseButton1Down:connect(function()
- if plr.PlayerData.Currency.Value - 2 >= 0 then
- game.ReplicatedStorage.Events.FoodItemEvent:FireServer(v.title.Text)
- end
- end)
- end
- local theloots = game.Workspace.Loots
- local waitt = os.time() - plr.PlayerData.LastPickUp.Value
- if waitt < 1000 then
- theloots.Parent = nil
- spawn(function()
- wait(os.time() - plr.PlayerData.LastPickUp.Value)
- theloots.Parent = game.Workspace
- end)
- end
- plr.PlayerData.LastPickUp.Changed:connect(function()
- print("changed")
- wait(5)
- theloots.Parent = nil
- wait(995)
- theloots.Parent = game.Workspace
- end)
- local SafeZones = game.ReplicatedStorage.Areas.Sound2:GetChildren()
- local Volume = require(game.ReplicatedStorage.Modules.Volum)
- while 1 do
- wait()
- Audio.CheckArea()
- for i = 1, #SafeZones do
- if Volume.check(SafeZones[i], plr.Character.HumanoidRootPart.Position) then
- cdf.Frame.energy.Visible = false
- cdf.no.Visible = true
- cdf.amount.Visible = false
- break
- else
- cdf.Frame.energy.Visible = true
- cdf.no.Visible = false
- cdf.amount.Visible = true
- end
- end
- do
- if plr.Character:FindFirstChild("Pet") then
- plr.Character.Pet.HumanoidRootPart.BodyPosition.Position = plr.Character.HumanoidRootPart.CFrame * CFrame.new(-, 2, 3.5).p + Vector3.new(, math.sin(tick()), math.sin(tick()) / 2)
- plr.Character.Pet.HumanoidRootPart.BodyGyro.cframe = plr.Character.HumanoidRootPart.CFrame * CFrame.Angles(, math.pi, 0)
- end
- -- DECOMPILER ERROR at PC895: LeaveBlock: unexpected jumping out DO_STMT
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement