Two errors:
Players.Player1.PlayerGui.ScreenGui.Points.Text:2: attempt to index field 'points' (a nil value)
Players.Player1.PlayerGui.MouseScripts.MouseS:10: attempt to index field 'points' (a nil value)
Number 1 This script is supposed to change this TextLabel named 'Points' text to the number of points you have.
script.Parent.Text = _G.points.Value.. " Points"
_G.points.Changed:connect(function()
script.Parent.Text = _G.points.Value.. " Points"
end)
Number 2 This script controls the points, and how you get them. I'm not sure what the error means.
local mouse = game.Players.LocalPlayer:GetMouse()
local keyName = 'GameRock'
mouse.Button1Down:connect(function()
local t = mouse.Target
if t and t.Name == keyName then
t:Destroy()
_G.points.Value = _G.points.Value + 100
end
end)
Here is the script to _G.points:
game.Players.PlayerAdded:connect(function(nP)
_G.points = Instance.new("IntValue",workspace)
_G.points.Name = nP.Name.." Points"
end)

2 comments
Thanks! Really helped.
No problem(: