Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game.Players.LocalPlayer
- local PlayerGui = Player:WaitForChild("PlayerGui")
- local StatTextButton = PlayerGui.StatButton:WaitForChild("DisplayFrame").TextButton
- local ShowStatFrame = PlayerGui:WaitForChild("ShowStats").ShowStatsFrame
- local StrengthValue = Player:WaitForChild("PowerFolder").Strength
- local DefenseValue = Player:WaitForChild("PowerFolder").Defense
- local StrengthLabel = ShowStatFrame.StrengthNumber
- local DefenseLabel = ShowStatFrame.DefenseNumber
- local function UpdateStats()
- ShowStatFrame.Visible = not ShowStatFrame.Visible
- StrengthLabel.Text = tostring(StrengthValue.Value)
- DefenseLabel.Text = tostring(DefenseValue.Value)
- end
- StatTextButton.MouseButton1Click:Connect(UpdateStats)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement