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 » Scripting Helpers
Home Search
 

Re: Please help

Previous Thread :: Next Thread 
lvl45Sandslash is not online. lvl45Sandslash
Joined: 08 Feb 2014
Total Posts: 8
26 Jun 2014 01:22 PM
Someone gave me a script to use so there is a spawn that only spawns a specific person (me), but I never scripted before and I don't know how to fill this out, my team is Dark orange and is called lvl45sandslash. Here is the script he gave me, he is offline

UOnlySpawnPoint = Path to part you want to spawn at

game.Players.ChildAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)
if char.Name == "YourNameHere" then
char.Torso.CFrame = CFrame.new(UOnlySpawnPoint.Position+Vector3.new(0,5,0))
end end) end)
Report Abuse
JustinJsT is not online. JustinJsT
Joined: 26 Sep 2010
Total Posts: 7818
26 Jun 2014 01:23 PM
Put your name in the YourNameHere?
Report Abuse
lvl45Sandslash is not online. lvl45Sandslash
Joined: 08 Feb 2014
Total Posts: 8
26 Jun 2014 01:23 PM
I did, but it spawns me in Neutral
Report Abuse
JustinJsT is not online. JustinJsT
Joined: 26 Sep 2010
Total Posts: 7818
26 Jun 2014 01:25 PM
I don't know if their is a way to disable Neutral, sorry
Report Abuse
JustinJsT is not online. JustinJsT
Joined: 26 Sep 2010
Total Posts: 7818
26 Jun 2014 01:32 PM
Why can't you steal some free model scripts?
Report Abuse
lvl45Sandslash is not online. lvl45Sandslash
Joined: 08 Feb 2014
Total Posts: 8
26 Jun 2014 01:32 PM
Those are outdated and too long
Report Abuse
JustinJsT is not online. JustinJsT
Joined: 26 Sep 2010
Total Posts: 7818
26 Jun 2014 01:34 PM
Dang
Report Abuse
Phyclops is not online. Phyclops
Joined: 27 Sep 2012
Total Posts: 5895
26 Jun 2014 01:36 PM
did you change line 1?
UOnlySpawnPoint = Path to part you want to spawn at

did you put the path?

example: UOnlySpawnPoint=game.Workspace.Part

or wherever your part is
Report Abuse
lvl45Sandslash is not online. lvl45Sandslash
Joined: 08 Feb 2014
Total Posts: 8
26 Jun 2014 01:37 PM
Is the UOnlySpawnPoint the team like DarkOrange?
Report Abuse
Phyclops is not online. Phyclops
Joined: 27 Sep 2012
Total Posts: 5895
26 Jun 2014 03:16 PM
no.
UOnlySpawnPoint is the brick that you want to spawn at.

example: name a part "Hey" and put it in workspace
then try this:


UOnlySpawnPoint = game.Workspace["Hey"]
game.Players.ChildAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)
if char.Name == "YourNameHere" then
char.Torso.CFrame = CFrame.new(UOnlySpawnPoint.Position+Vector3.new(0,5,0))
end end) end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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