This code/script shows a gui when you get your first kill. Now, how would I award Player Points(5) to this player?
local plr = game.Players.LocalPlayer moved = false while true do if moved == false and plr.leaderstats.Kills.Value >= 1 then moved = true plr.PlayerGui.nicekills.MainFrame.Background.TextLabel:TweenPosition(UDim2.new(0, 0, 4, 0), "Out", "Bounce", 2.5) wait(7) plr.PlayerGui.nicekills.MainFrame.Background.TextLabel:TweenPosition(UDim2.new(0, 0, 10, 0), "Out", "Bounce", 2.5) end wait(1) end
You need to use the PointsService:AwardPoints method. However, it can only be used from a local script. You should change the script so that it runs as a server script in ServerScriptService.
http://wiki.roblox.com/index.php?title=API:Class/PointsService/AwardPoints