I have a score variable holding a value of 0, I want the value to be printed onto a script inside a TextLabel in StarterGui.
Score = 0
local clickdetector = script.Parent:WaitForChild("ClickDetector")
math.random(tick())
clickdetector.MouseClick:Connect(function()
script.Parent.Position = Vector3.new(math.random(20, 70),math.random(10, 20),math.random(20, 70))
Score = Score + 1
print(Score)
end)
local ScreenGui = script:FindFirstAncestorWhichIsA("ScreenGui")
local TextLabel = ScreenGui:FindFirstChildWhichIsA("TextLabel")
TextLabel.Text =
