Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i add values for players?

Asked by 9 years ago
local textbutton = Instance.new("TextButton")
if textButton.Mousebutton1down:connect(function()
    game.Players.LocalPlayer.Character.Humanoid = 1
end)

This is the code I tried to make for clicking a gui to give a player a specific value. I would use the value to clone specific items into a players backpack based on the gui they clicked. (My gui uses the basic Roblox button gui, just moved the position and changed the sizing.) Can someone help me?

0
Is it giving you an error message? GoldenPhysics 474 — 9y
0
No, there is no error message, but from there i don't know how to identify the values. When I did (if game.Players.LocalPlayer.Character.Humanoid = 1 = true), it wouldn't work. I don't know how to script past this point, or if it even can be added onto. doggybite1 100 — 9y

Answer this question