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 have a problem. :(

Previous Thread :: Next Thread 
Sealitey is not online. Sealitey
Joined: 10 Feb 2011
Total Posts: 5378
14 Jun 2015 12:47 AM
I have team spawns. The TeamColor and BrickColor(even though it doesn't matter) coordinate to TeamColor of the specific team.


They work, and I spawn in the correct place, but it spawns me from a few studs in the air and drops me down, instead of spawning right on the spawn. Why does this happen? The spawns work fine, nothing wrong...





Thanks!

-Seal
Report Abuse
TehGabeNewell is not online. TehGabeNewell
Joined: 07 Feb 2013
Total Posts: 3165
14 Jun 2015 12:48 AM
It's a spawn placement bug with roblox, It's stupid.
Report Abuse
Sealitey is not online. Sealitey
Joined: 10 Feb 2011
Total Posts: 5378
14 Jun 2015 12:49 AM
So there is no way to avoid it?
Report Abuse
Tokimonu is not online. Tokimonu
Joined: 18 Sep 2009
Total Posts: 643
14 Jun 2015 12:49 AM
i would just make all of the parts spawns and just teleport the player to that part when they respawn


[ insert neat siggy here ]
Report Abuse
TehGabeNewell is not online. TehGabeNewell
Joined: 07 Feb 2013
Total Posts: 3165
14 Jun 2015 12:50 AM
Well you can make a script that can CFrame position the players torso to the spawn when they respawn, but I have no idea where to go with that.
Report Abuse
Sealitey is not online. Sealitey
Joined: 10 Feb 2011
Total Posts: 5378
14 Jun 2015 12:57 AM
Well, I have a teams selection Gui.

And when you select a certain team, I have this script to position the player.
plr.Character:MoveTo(Vector3.new(15.64, 57.646, 265.047))

However, when I reset, that's where the problem resides. So I just put false cancollided brick ontop of the spawn point, so when the player respawns, it doesnt get stuck on the roof.
Report Abuse
iiEssence is not online. iiEssence
Joined: 18 Jun 2014
Total Posts: 3467
14 Jun 2015 01:01 AM
Roblox made it like that to keep players from flying everywhere when multiple players are respawned at the same time. (At least that's what I was told)

You could manually position them 2-3 studs above the spawn as someone mentioned
Report Abuse
OzzyFin is not online. OzzyFin
Joined: 07 Jun 2011
Total Posts: 3600
14 Jun 2015 01:07 AM
game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function(char)
local spawn
for _,v in pairs(workspace:GetChildren()) do -- expecting spawns to be in workspace
if v.TeamColor == p.TeamColor then
spawn = v
end
end
char.Torso.CFrame = spawn.CFrame * CFrame.new(0,2,0) -- my memory so bad im not sure is it 2 or 4, but i think legs are 2 studs long??
end)
end)

wrote on phone so i mightve missed something obvious and prob got ninjad

you might want randomized spawn point, so go ahead and make it
very simple though
Report Abuse
Sealitey is not online. Sealitey
Joined: 10 Feb 2011
Total Posts: 5378
14 Jun 2015 01:08 AM
And, along with that,


The player always respawns at the Auto Assigned team, (and only sometimes respawns at the correct teams spawn they're supposed to spawn at)


Is that apart of the glitch? e.e
Report Abuse
OzzyFin is not online. OzzyFin
Joined: 07 Jun 2011
Total Posts: 3600
14 Jun 2015 01:08 AM
exactly i did.t check if its spawnlocation wow
Report Abuse
Sealitey is not online. Sealitey
Joined: 10 Feb 2011
Total Posts: 5378
14 Jun 2015 01:10 AM
Thanks, Ozzy. But that only solves half of my problem. :(

Here is my code, (the code before adding Ozzy's stuff)

local plr = game.Players.LocalPlayer
local pickTeams = script.Parent.Parent
local frameforteams = pickTeams.FrameTeams
local pickEU = pickTeams.FrameTeams.PickedEntityUnit
local pickR = pickTeams.FrameTeams.PickedRaiders
local pickV = pickTeams.FrameTeams.PickedVisitors


pickEU.MouseButton1Down:connect(function()
local plr = game.Players.LocalPlayer
if plr:IsInGroup(2567468) then do
plr.TeamColor = BrickColor.new("Dark green")
target = plr.Character:MoveTo(Vector3.new(15.64, 57.646, 265.047))
end
else
plr.Character.Health = 0
end
end)

pickR.MouseButton1Down:connect(function()
local plr = game.Players.LocalPlayer
plr.TeamColor = BrickColor.new("Bright red")
plr.Character:MoveTo(Vector3.new(354.721, 86.719, 386.627))
end)

pickV.MouseButton1Down:connect(function()
local plr = game.Players.LocalPlayer
plr.TeamColor = BrickColor.new("Bright yellow")
target = plr.Character:MoveTo(Vector3.new(108.637, 88.589, 424.941))
end)



Works perfectly fine, teams work... everything works. However, the player doesnt always respawn back to the correct location, and only sometimes does. Player sometimes goes to correct one, or goes to the autoassigned one which is Visitors.
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