Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How To Make Someone Teleport When They Have The Right Amount Of Coins?

Im Trying To Figure This Out But Im Too Dumb To Figure It Out So Can Anyone Help Me?

2 answers

✓ Accepted answer

This is the script in a part that's supposed to be the teleport you touch. The CFrame is basically the position - put a part where u want the person to be teleported, lift it up a bit so they don't get stuck in the floor and check the part's position, then put the 3 numbers in the CFrame.new()

function ontouch(hit)
	
	local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
	
	if plr then
		
		if plr.leaderstats.Coins.Value >= 1 then
			
			hit.Parent.HumanoidRootPart.CFrame = CFrame.new(-365.785, 137.623, -269.178)
			
		end
	end
end

script.Parent.Touched:Connect(ontouch)

Hi man! Give us some more info like your Coins script and why do you want to make it happen.

This discussion is preserved as it was. New answers, comments, and votes are closed.