#I am making a GUI

5 messages · Page 1 of 1 (latest)

fleet swift
#

I am making a GUI and I am trying to put the Name of the leaderstats in a GUI making it say (leaderstatsname):..

Here are my codes:

leaderstats:

game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder",player)
leaderstats.Name = "leaderstats"
local Smashes = Instance.new("IntValue",leaderstats)
Smashes.Name = "Smashes"
Smashes.Value = 0

local Equipped = Instance.new("IntValue", player)

Equipped.Value = 1
Equipped.Name = "Equipped"



local Hammer = Instance.new("StringValue", leaderstats)
Hammer.Name = "Glove"
Hammer.Value = "Defaultt Hammer"

end)

GUI (textlabel) script:

local Player = game.Players.LocalPlayer
local Leaderstats = Player:WaitForChild("leaderstats")
local Hammer = Leaderstats:WaitForChild("Hammer")

while wait() do
script.Parent.Text = "Hammer: "..Hammer.Value
end

Other script:

local Player = game.Players.LocalPlayer
local Leaderstats = Player:WaitForChild("leaderstats")
local Smashes = Leaderstats:WaitForChild("Smashes")

while wait() do
script.Parent.Text = "Smashes: "..Smashes.Value
end

hollow crowBOT
#

studio** You are now Level 1! **studio

fleet swift
#

It just breaks the game when I do this

hushed current
#

I think it's because there are too many signals sent from the script to the game and the game is unable to accept them.

fleet swift
#

Thanks alot, Ill try this when I get home