generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: i need help in something...

Previous Thread :: Next Thread 
XtremeGaming7000 is not online. XtremeGaming7000
Joined: 16 Jun 2015
Total Posts: 49
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
TrainingToTroll is not online. TrainingToTroll
Joined: 27 Oct 2012
Total Posts: 1757
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 is not online. 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 is not online. 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
XtremeGaming7000 is not online. XtremeGaming7000
Joined: 16 Jun 2015
Total Posts: 49
03 Aug 2015 02:57 PM
WHAT THAT MEAN?!IM ONLY STARTING IN SCRIPTING!
Report Abuse
Klink45 is not online. 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
XtremeGaming7000 is not online. XtremeGaming7000
Joined: 16 Jun 2015
Total Posts: 49
03 Aug 2015 02:59 PM
@Klink45,

i read the wiki thing already. i need better help now.
Report Abuse
Klink45 is not online. 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
AdvancedDrone is online. AdvancedDrone
Joined: 17 Apr 2010
Total Posts: 2599
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 is not online. 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
XtremeGaming7000 is not online. XtremeGaming7000
Joined: 16 Jun 2015
Total Posts: 49
03 Aug 2015 03:01 PM
#Klink45

that was a bit to better. i need to find part 2 of scripting.
Report Abuse
Klink45 is not online. 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 is not online. 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
TrainingToTroll is not online. TrainingToTroll
Joined: 27 Oct 2012
Total Posts: 1757
03 Aug 2015 03:03 PM
use the userid instead of the player's name btw
Report Abuse
XtremeGaming7000 is not online. XtremeGaming7000
Joined: 16 Jun 2015
Total Posts: 49
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 is not online. 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
XtremeGaming7000 is not online. XtremeGaming7000
Joined: 16 Jun 2015
Total Posts: 49
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 is not online. 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
TrainingToTroll is not online. TrainingToTroll
Joined: 27 Oct 2012
Total Posts: 1757
03 Aug 2015 03:08 PM
you using hashtags ruffles my jimmies
Report Abuse
XtremeGaming7000 is not online. XtremeGaming7000
Joined: 16 Jun 2015
Total Posts: 49
03 Aug 2015 03:11 PM
#Klink45

Where do i put the script in?
Report Abuse
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
03 Aug 2015 03:12 PM
Just put it in workspace.

u sicko!
Report Abuse
XtremeGaming7000 is not online. XtremeGaming7000
Joined: 16 Jun 2015
Total Posts: 49
03 Aug 2015 03:14 PM
wait wait so how will it know the position?
Report Abuse
Klink45 is not online. 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
XtremeGaming7000 is not online. XtremeGaming7000
Joined: 16 Jun 2015
Total Posts: 49
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image