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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Game Design
Home Search
 

Re: How could I do this...

Previous Thread :: Next Thread 
devTools is not online. devTools
Joined: 06 Sep 2014
Total Posts: 7950
22 Dec 2014 04:57 PM
I need to make a script where when a player joins or dies, he spawns at 1 of 4 spawnlocations but he needs to be cframed to it because it's in a low ceiling. The issue is that I need to make it so that when 15 people would respawn, the script doesn't freak out and they need to be able to spawn in eachother instead of on top.
Help?
Report Abuse
DerpyMerpKing is not online. DerpyMerpKing
Joined: 05 Feb 2011
Total Posts: 2553
22 Dec 2014 05:01 PM
I guess you could make them cancollide false??
Report Abuse
Photonics is not online. Photonics
Joined: 14 Feb 2010
Total Posts: 26773
22 Dec 2014 05:02 PM
Just make the area taller?
Report Abuse
devTools is not online. devTools
Joined: 06 Sep 2014
Total Posts: 7950
22 Dec 2014 05:04 PM
math.randomseed(tick())

Spawns = {spawn1,spawn2, spawn3, spawn4}

game.Players.PlayerAdded:connect(function(plr)
repeat wait() until plr.Character ~= nil
plr.Character.Torso.CFrame = game.Workspace[Spawns[math.random(1,4)]].CFrame * Vector3.new(0,3,0)

plr.Died:connect(function()
repeat wait() until plr.Character ~= nil
plr.Character.Torso.CFrame = game.Workspace[Spawns[math.random(1,4)]].CFrame * Vector3.new(0,3,0)
end)

end)

idk about the players inside eachother issue though
Report Abuse
devTools is not online. devTools
Joined: 06 Sep 2014
Total Posts: 7950
22 Dec 2014 05:05 PM
I can't make it taller in this game, it's gotta be the height it is.

And idk how to make them cancollide = false until they aren't touching a humanoid
Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
22 Dec 2014 05:10 PM
game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)
char.Torso.CFrame = game.Workspace[Spawns[math.random(1,4)]].CFrame * Vector3.new(0,3,0)

char.Humanoid.Died:connect(function()
repeat wait() until plr.Character ~= nil
plr.Character.Torso.CFrame = game.Workspace[Spawns[math.random(1,4)]].CFrame * Vector3.new(0,3,0)
end)

end)
Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
22 Dec 2014 05:12 PM
math.randomseed(tick())

Spawns = {spawn1,spawn2, spawn3, spawn4}

game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)
char.Torso.CFrame = game.Workspace[Spawns[math.random(1,4)]].CFrame * Vector3.new(0,3,0)

char.Humanoid.Died:connect(function()
repeat wait() until plr.Character ~= nil
char.Torso.CFrame = game.Workspace[Spawns[math.random(1,4)]].CFrame * Vector3.new(0,3,0)
end)

end)
Report Abuse
devTools is not online. devTools
Joined: 06 Sep 2014
Total Posts: 7950
22 Dec 2014 05:14 PM
Uh I did that
Report Abuse
devTools is not online. devTools
Joined: 06 Sep 2014
Total Posts: 7950
22 Dec 2014 05:17 PM
Oh I needed plr.Character.Humanoid.Died
Report Abuse
devTools is not online. devTools
Joined: 06 Sep 2014
Total Posts: 7950
22 Dec 2014 05:25 PM
Bump
Report Abuse
devTools is not online. devTools
Joined: 06 Sep 2014
Total Posts: 7950
22 Dec 2014 05:35 PM
Bump 2
Report Abuse
vacharya is not online. vacharya
Joined: 06 Jan 2011
Total Posts: 511
22 Dec 2014 05:39 PM
Maybe move the spawn a predetermined distance one a player spawns on it. Like 2 units left then after another player spawns on it move it back again.
Report Abuse
devTools is not online. devTools
Joined: 06 Sep 2014
Total Posts: 7950
22 Dec 2014 05:41 PM
So moving spawns? Or just a ton of small ones?
Report Abuse
devTools is not online. devTools
Joined: 06 Sep 2014
Total Posts: 7950
22 Dec 2014 05:44 PM
Bumpp
Report Abuse
devTools is not online. devTools
Joined: 06 Sep 2014
Total Posts: 7950
22 Dec 2014 05:46 PM
Bbbuuummpppp
Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
22 Dec 2014 05:47 PM
What is the problem that you're having?
Report Abuse
devTools is not online. devTools
Joined: 06 Sep 2014
Total Posts: 7950
22 Dec 2014 05:49 PM
I want the players to spawn in eachother without glitching, so like they need to either be cancollide in eachother or have a ton of little spawns
Report Abuse
vacharya is not online. vacharya
Joined: 06 Jan 2011
Total Posts: 511
22 Dec 2014 06:03 PM
1.make tiny spawns
2. put them into a table
3. remove the spawn after player spawns into that spawn
Report Abuse
devTools is not online. devTools
Joined: 06 Sep 2014
Total Posts: 7950
22 Dec 2014 06:12 PM
Issue with that is that I need the spawns again if they die, so I think I'll make a table of all the players and I will assign one spawn to each player and they will go there when they die or join.
Report Abuse
championbuilder is not online. championbuilder
Joined: 20 Jan 2009
Total Posts: 13544
22 Dec 2014 06:16 PM
or o ROORRRRR ORRRRRRRRRRRR


Make them move forward 2 studs when they spawn

game.Players.PlayerAdded:connect(function(player)
local char = player.Character
local bp = Instance.new("BodyPosition",char.Torso)
bp.position = char.Torso.Position + Vector3.new(2,0,0)
wait(2)
char.Torso.BodyPosition:Destroy()
end
end)
Report Abuse
devTools is not online. devTools
Joined: 06 Sep 2014
Total Posts: 7950
22 Dec 2014 06:23 PM
That would mean that all the players move forward 2 studs and glitch af with it
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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