When I try to set the text it is not working, It should update every 0.1 seconds but it looks like it only updates once that that's it. Any other info needed please tell me.
Setting Adding
local point = game.Workspace.Point
local pointMulti = game.Workspace.PointMulti
local pointAdd = game.Workspace.PointAdd
point.Value = 0
pointMulti.Value = 1
pointAdd.Value = 0
local function add()
while true do
wait(1)
point.Value += pointAdd.Value
print("after adding, points is now at")
print(point.Value)
end
end
task.spawn(add)
local textBox = game.StarterGui.ScreenGui.Point
local function setText()
while true do
wait(0.1)
textBox.Text = tostring(point.Value)
print("set the text to:")
print(point.Value)
end
end
task.spawn(setText)
Click Logic
local clickDetector = script.Parent
local pointAdd = game.Workspace.PointAdd
local function onClicked(player)
pointAdd.Value += 1
print(pointAdd.Value)
end
clickDetector.MouseClick:Connect(onClicked)
** You are now Level 2! **