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

Is there anyway I would make a script that only allows players on a certain team to teleport?

I found some source, but they are all outdated from 2012, or just outdated. Can anybody help?

2 comments

0

teleport in what way, like their character? or to a place

0

A position

1 answer

✓ Accepted answer

Yes, there is a way. You will need to edit the following script to match your game and also make sure the players stack upon each other.

If the script doesn't work then debug a bit.

for i,v in pairs(game:GetService("Players") do
	if v.Team == game:GetService("Teams")["Team Name Here"] then
		v.Character:SetPrimaryPartCFrame(Part.CFrame)
	end
end

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