What's a script where it chooses all players in the game, and teleports them to a block?
If you want it as a tool use this script:
01 | local debounce = false --Just in case |
02 | local m = Instance.new( "Message" ) |
03 | m.Parent = game.Players.LocalPlayer |
04 | Tool = script.Parent |
05 | Player = game.Players.LocalPlayer |
06 |
07 | function onButton 1 Down(mouse) |
08 | Player.Character.Torso.CFrame = CFrame.new(game.Workspace.Spawn's Name.Position) + Vector 3. new( 0 , 3 , 0 ) |
09 | end |
10 |
11 | function onSelected(mouse) |
12 | mouse.Button 1 Down:connect( function () onButton 1 Down(mouse) end ) |
13 | end |
14 |
15 | function onDeselect(mouse) |
16 | end |
17 |
18 | script.Parent.Selected:connect(onSelected) |
19 | script.Parent.Deselected:connect(onDeselect) |
Local script in Hopper
the Following goes in a Part's LocalScript;
1 | plr = game.Players.LocalPlayer |
2 | char = plr.Character |
3 | brick = game.Workspace.Spawn -- change Spawn to ur Brick |
4 |
5 | function onTouch() |
6 | char:MoveTo(brick.Position) |
7 | end |
8 |
9 | script.Parent.Touched(onTouch) |
see? no big long lines... also, trust me... I have an automatic teleporter that teleports players every round to their Spawns in my other account... so this should work... and u don't really need Vector3.new()
cos only some people use it to Rotate Players... Hope I helped...
Also, check me out on Roblox and check my Free Models... I made myself, there's also a Random Teleporter if u click a Button (Gui Button)