Hi, I was wondering how to make a brick that gives a player PP's and then instantly teleports you to a different brick. I have thiss code here but idk how to do the teleport part
local pointgiver = script.Parent
pointgiver.Touched:connect(function(pointgiver)
local g = game.Players:GetPlayerFromCharacter(pointgiver.Parent)
if pointgiver:IsA("Part") and (g) then
pps = game:GetService("PointsService")
if pps:GetAwardablePoints() >= 1 then
pps:AwardPoints(g.userId, 1)
end
end
end)
