I have no idea what LoadString is and this is my first time working with points.
This is my script;
local button = script.Parent local AdPlaying = button.Parent:WaitForChild("AdPlaying") local AdFrame = button.Parent.Parent:WaitForChild("AdFrame") local PlayerPoint = game:GetService("PointsService") local Amount = button.Parent:WaitForChild("AdValue").Value local player = game.Players.LocalPlayer button.MouseButton1Down:connect(function() if AdPlaying.Value == true then AdPlaying.Value = false AdFrame:TweenPosition(UDim2.new(0, -500,0, 100),'In','Sine',0.5) PlayerPoint:AwardPoints(player.UserId,Amount) end end)
The error is on line 12. Please help!
PlayerPoints Service should only be used on a Server Script.