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

Numbervalue is not changing w/ MouseButton function, why??

Asked by
xNypify 11
5 years ago

The Indicator value does not change, why?

local NameOfTrail = script.Parent.Parent.Parent.NameOfTrail
local RequiredPrice = script.Parent.Parent.Parent.RequirePriceText
local Indicator = script.Parent.Parent.Parent.BuyButton:WaitForChild("Indicator")
local player = game.Players.LocalPlayer
local Purchased = player:WaitForChild("RedTrail")

script.Parent.MouseButton1Click:Connect(function()
    NameOfTrail.Text = "Red Trail"
    Indicator.Value = 1
    if Purchased.Value == false then
    RequiredPrice.Text = script.Parent.Price.Value.." gem is required to purchase"
    else
    RequiredPrice.Text = "You own this trail"
    end
end)
0
you only set it to 1 radusavin366 617 — 5y
0
yes, It set to a default at 0, and I want it to change to 1 once button is clicked, there are other buttons that change it to another value, and those also do not work. xNypify 11 — 5y

Answer this question