local badgeId = 242823687 -- Badge ID goes here -- Change the co-ordinates (0,4,0) to the Position you want the player teleported to -- Make sure to set the 'y' (middle number) is 2-4 higher so they dont spawn in the ground script.Parent.Touched:connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player then if game:GetService("BadgeService"):UserHasBadge(player.userId, badgeId) then local character = player:WaitForChild("Character") if character then local torso = character:WaitForChild("Torso") if torso then torso.CFrame = CFrame.new(4.365, 100, 20.048) end end end end end)
I have this script which I want to teleport people if they have a certain badge to a certain spot if they touch the part. There are no errors in the output.