Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player = game.Players.LocalPlayer
- gui = script.Parent
- player:WaitForChild("personalstats")
- playing = player:FindFirstChild("Isplaying")
- menu = false
- clicked = false
- stat = player:FindFirstChild("leaderstats")
- points = stat:FindFirstChild("Points")
- otherstat = player:FindFirstChild("localstats")
- level = otherstat:FindFirstChild("Level")
- xp = otherstat:FindFirstChild("Xp")
- localstat = player:FindFirstChild("personalstats")
- played = localstat:FindFirstChild("Games played")
- lost = localstat:FindFirstChild("Games lost")
- gui.Frame.TextButton.MouseButton1Down:connect(function()
- if menu == false then
- menu = true
- gui.Frame.TextButton.Text = "CLOSE STATS & OPTIONS"
- gui.OptFrame:TweenPosition(UDim2.new(0.5, -210, 0.5, -85), "Out", "Sine", 1, true)
- elseif menu == true then
- menu = false
- gui.Frame.TextButton.Text = "OPEN STATS & OPTIONS"
- gui.OptFrame:TweenPosition(UDim2.new(0, -420, 0.5, -85), "Out", "Sine", 1, true)
- end
- end)
- gui:WaitForChild("OptFrame")
- gui.OptFrame.PlayLabel.TextButton.MouseButton1Down:connect(function()
- if playing.Value == true then
- clicked = false
- elseif playing.Value == false then
- clicked = true
- end
- if clicked == false then
- clicked = true
- playing.Value = false
- elseif clicked == true then
- clicked = false
- playing.Value = true
- end
- end)
- while wait() do
- gui.Frame.PointsLabel.Text = points.Value .. " Points"
- gui.Frame.LevelLabel.Text = "Level " .. level.Value .. " (" .. xp.Value .. "/" .. (level.Value * 125) .. " Xp)"
- gui.OptFrame.PlayedLabel.TextButton.Text = played.Value
- gui.OptFrame.LostLabel.TextButton.Text = lost.Value
- if playing.Value == true then
- gui.OptFrame.PlayLabel.TextButton.Text = "Yes"
- gui.OptFrame.PlayLabel.TextButton.BackgroundColor3 = Color3.new(0/255, 255/255, 0/255)
- else
- gui.OptFrame.PlayLabel.TextButton.Text = "No"
- gui.OptFrame.PlayLabel.TextButton.BackgroundColor3 = Color3.new(255/255, 0/255, 0/255)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement