|
| 03 Aug 2015 02:55 PM |
| can somebody tell me how to make a spawn point that only one player can spawn in? |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2015 02:56 PM |
| put a script in the startergui and put a parameter of the name of that specific person and use cframe to put them on that spawn |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 03 Aug 2015 02:56 PM |
wiki.roblox.com/index.php?title=Absolute_beginner%27s_guide_to_scripting
u sicko! |
|
|
| Report Abuse |
|
|
litalela
|
  |
| Joined: 30 Mar 2010 |
| Total Posts: 6267 |
|
|
| 03 Aug 2015 02:57 PM |
| Using spawnlocations is silly anyways, most people use a spawnposition to get them in a lobby or waiting room then use CFrame to move torso |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2015 02:57 PM |
| WHAT THAT MEAN?!IM ONLY STARTING IN SCRIPTING! |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 03 Aug 2015 02:58 PM |
wiki.roblox.com/index.php?title=CFrame
u sicko! |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2015 02:59 PM |
@Klink45,
i read the wiki thing already. i need better help now. |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 03 Aug 2015 03:01 PM |
CFrame is basically just position and rotation and things like that. Know that, all you need to do is say this to make a player move to a certain spawn: game.Workspace.PlayerName:MoveTo(Position)
u sicko! |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2015 03:01 PM |
local script in startergui then do
Player = script.Parent.Parent
if Player.Name == "PLAYERNAMEHEEE" then -- cframe function here to tp them end
- RBXDev Manager and Game Developer. |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 03 Aug 2015 03:01 PM |
*Knowing that Sorry if I confused you.
u sicko! |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2015 03:01 PM |
#Klink45
that was a bit to better. i need to find part 2 of scripting. |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 03 Aug 2015 03:02 PM |
@Advanced You do realize that's horribly inefficient?
u sicko! |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 03 Aug 2015 03:03 PM |
This is helpful, it has links to good scripting tutorials: http://wiki.roblox.com/index.php?title=Lua
u sicko! |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2015 03:03 PM |
| use the userid instead of the player's name btw |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2015 03:04 PM |
| but i meant how do you ANY person be only at that spawn all the time? |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 03 Aug 2015 03:06 PM |
wiki.roblox.com/index.php?title=PlayerAdded
game.Players.PlayerAdded:connect(function(player) local char = player.Character char:MoveTo(Position) end)
u sicko! |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2015 03:06 PM |
#TrainingToTroll
I Dont Know ANY Player ID.Can I Just Do Like Player 7 And Then The 7th Player That Joins Gets The Spawn? |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 03 Aug 2015 03:08 PM |
Ok, this will make it so the 7th player that joins gets moved to your spawn:
local Int = Instance.new("IntValue") Int.Parent = game.Workspace Int.Name = "NumPlayers") game.Players.PlayerAdded:connect(function(player) Int.Value = Int.Value +1 local char = player.Character if Int.Value = 7 then char:MoveTo(Position) end end)
u sicko! |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2015 03:08 PM |
| you using hashtags ruffles my jimmies |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2015 03:11 PM |
#Klink45
Where do i put the script in? |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 03 Aug 2015 03:12 PM |
Just put it in workspace.
u sicko! |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2015 03:14 PM |
| wait wait so how will it know the position? |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 03 Aug 2015 03:15 PM |
Put in your spawn's position where the position is needed.
u sicko! |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2015 03:19 PM |
| i think i got it.I also want to know how to make a button that teleports you somewhere?I know how to make the GUI, But not the things that i need to put into the GUI Button. |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 03 Aug 2015 03:19 PM |
wiki.roblox.com/index.php?title=API:Class/GuiButton/MouseButton1Down
u sicko! |
|
|
| Report Abuse |
|
|