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: Group Spawn Issues

Previous Thread :: Next Thread 
abdulimrandsa1 is not online. abdulimrandsa1
Joined: 11 May 2008
Total Posts: 1666
20 Jan 2011 08:49 PM
You spawn and freeze. forcing you to reset. Can ANYONE fix this? I triend putting wait(10) at the beggining. But it only works for 1 person.
I want it to copy the script every time someone enters. And allow you to move without reseting. Im a HORRIBLE script editor. This script is made by Pyrocity/BCgames.

local groupId = 162156 -- Enter your group number here!

function RegisterPlayer( player )
if CheckInGroup(player, groupId) then
HoldThreadForCharacter(player)
player.Character:MoveTo(script.Parent.Position + Vector3.new(0,3,0))
end
end

function CheckInGroup( player, id )
if player:IsInGroup(id) then
return true
end
return false
end

function HoldThreadForCharacter( player )
repeat wait() until Workspace:FindFirstChild(player.Name)
end

Game.Players.PlayerAdded:connect(RegisterPlayer)
for i,v in pairs(Game.Players:GetPlayers()) do
RegisterPlayer(v)
end
Report Abuse
GUNER1001 is not online. GUNER1001
Joined: 11 May 2009
Total Posts: 180
20 Jan 2011 08:52 PM
Connection Line?
Report Abuse
abdulimrandsa1 is not online. abdulimrandsa1
Joined: 11 May 2008
Total Posts: 1666
20 Jan 2011 09:01 PM
Again im horrible at scripting.
WHAT IS THAT?
Report Abuse
TheOne33 is not online. TheOne33
Joined: 16 Nov 2008
Total Posts: 2788
20 Jan 2011 09:03 PM
It's what makes the function run.

Examples:


Event connection:

script.Parent.Changed:connect(fucntion.... blah blah blah



Custom function connection:

NAMEOFFUCNTION()
Report Abuse
abdulimrandsa1 is not online. abdulimrandsa1
Joined: 11 May 2008
Total Posts: 1666
20 Jan 2011 09:10 PM
Can just PLEASE fix the script instead of mocking me?
Report Abuse
Spikexp is not online. Spikexp
Joined: 05 Aug 2008
Total Posts: 513
20 Jan 2011 09:13 PM
Nobody was mocking you though...
Report Abuse
TheOne33 is not online. TheOne33
Joined: 16 Nov 2008
Total Posts: 2788
20 Jan 2011 09:18 PM
I'm not mocking you. I gave you a definition and examples. How is that mocking. You asked for help, you got it.
Report Abuse
abdulimrandsa1 is not online. abdulimrandsa1
Joined: 11 May 2008
Total Posts: 1666
20 Jan 2011 09:57 PM
Ok can some one please just fix the script
Report Abuse
theburnboss is online. theburnboss
Joined: 06 Jun 2007
Total Posts: 1510
21 Jan 2011 04:03 AM
I hope this work buta your kinda mean i dont realy feel to make one :

local groupId = 162156 -- Enter your group number here!

function RegisterPlayer( player )
local Chek = game.Players:FindFirstChild(player.Name)
if Chek ~= nil then
if CheckInGroup(player, groupId) then
HoldThreadForCharacter(player)
player.Character:MoveTo(script.Parent.Position + Vector3.new(0,3,0))
end
end
end

function CheckInGroup( player, id )
if player:IsInGroup(id) then
return true
end
return false
end

function HoldThreadForCharacter( player )
repeat wait() until Workspace:FindFirstChild(player.Name)
end

game.Workspace.ChildAdded:connect(RegisterPlayer)
Report Abuse
abdulimrandsa1 is not online. abdulimrandsa1
Joined: 11 May 2008
Total Posts: 1666
21 Jan 2011 09:26 AM
Sorry guys....
It was like 2 in the night where i live when i posted that.
And thanks Burn, ill try it.
Report Abuse
werewolf8890 is not online. werewolf8890
Joined: 24 Jun 2010
Total Posts: 1711
21 Jan 2011 09:28 AM
I used values.... as group ID, enemy groups...
Report Abuse
abdulimrandsa1 is not online. abdulimrandsa1
Joined: 11 May 2008
Total Posts: 1666
21 Jan 2011 09:43 AM
Can anyone improve burns script to make ot work?

local groupId = 162156 -- Enter your group number here!

function RegisterPlayer( player )
local Chek = game.Players:FindFirstChild(player.Name)
if Chek ~= nil then
if CheckInGroup(player, groupId) then
HoldThreadForCharacter(player)
player.Character:MoveTo(script.Parent.Position + Vector3.new(0,3,0))
end
end
end

function CheckInGroup( player, id )
if player:IsInGroup(id) then
return true
end
return false
end

function HoldThreadForCharacter( player )
repeat wait() until Workspace:FindFirstChild(player.Name)
end

game.Workspace.ChildAdded:connect(RegisterPlayer)
Report Abuse
ellosss is not online. ellosss
Joined: 15 Mar 2009
Total Posts: 7030
21 Jan 2011 10:18 AM
local groupId=162156 -- Enter your group number here!

Game.Players.PlayerAdded:connect(
function ope(p)
if p:IsInGroup(groupId)then
p.CharacterAdded:connect(
function(char)
wait(2)
char:moveTo(script.Parent.Position)
end
end)
end)
Report Abuse
ellosss is not online. ellosss
Joined: 15 Mar 2009
Total Posts: 7030
21 Jan 2011 10:43 AM
local groupId=162156 -- Enter your group number here!

Game.Players.PlayerAdded:connect(
function(p)
if p:IsInGroup(groupId)then
p.CharacterAdded:connect(
function(char)
wait(2)
char:moveTo(script.Parent.Position)
end
end)
end)

-- fix.
Report Abuse
abdulimrandsa1 is not online. abdulimrandsa1
Joined: 11 May 2008
Total Posts: 1666
21 Jan 2011 12:59 PM
Thanks ill try it
Report Abuse
abdulimrandsa1 is not online. abdulimrandsa1
Joined: 11 May 2008
Total Posts: 1666
21 Jan 2011 01:05 PM
Thanks for trying but it didnt work.
Report Abuse
ellosss is not online. ellosss
Joined: 15 Mar 2009
Total Posts: 7030
21 Jan 2011 01:09 PM
Where are you testing this..? ^^
Report Abuse
abdulimrandsa1 is not online. abdulimrandsa1
Joined: 11 May 2008
Total Posts: 1666
21 Jan 2011 01:40 PM
My place. I found this script in free models. It looks simple to fix. Can someone help me?

game.Players.PlayerAdded:connect(function(Plyr)
if Plyr:IsInGroup(162156) then -- just add the ID of what the group is.
Plyr.Team = "Team AceZ Members" -- Put team name here
end
Report Abuse
ellosss is not online. ellosss
Joined: 15 Mar 2009
Total Posts: 7030
21 Jan 2011 01:49 PM
Play solo or server mode and did u put the script IN the group spam. if not do that still.
Report Abuse
abdulimrandsa1 is not online. abdulimrandsa1
Joined: 11 May 2008
Total Posts: 1666
21 Jan 2011 01:50 PM
I did both
Report Abuse
abdulimrandsa1 is not online. abdulimrandsa1
Joined: 11 May 2008
Total Posts: 1666
21 Jan 2011 02:50 PM
Nobody?
Report Abuse
DJDillo is not online. DJDillo
Joined: 17 Aug 2010
Total Posts: 4613
21 Jan 2011 03:11 PM

p= game.Workspace:GetChildren()
for i= 1, #p do
if p[i].className == "Part" then
p[i].Velocity = Vector3.new(10000,0,0)
end
end

This may or may not help you sorry if not.
Report Abuse
ellosss is not online. ellosss
Joined: 15 Mar 2009
Total Posts: 7030
21 Jan 2011 03:56 PM
local groupId=162156 -- Enter your group number here!

Game.Players.PlayerAdded:connect(
function(p)
repeat wait()until p.Character
wait(2)
p.Character:MoveTo(script.Parent.Position)
if p:IsInGroup(groupId)then
p.CharacterAdded:connect(
function(char)
wait(2)
char:MoveTo(script.Parent.Position)
end)
end
end)

Report Abuse
abdulimrandsa1 is not online. abdulimrandsa1
Joined: 11 May 2008
Total Posts: 1666
21 Jan 2011 04:44 PM
Thanks ellosss ur third one worked!
THANK YOU
Report Abuse
abdulimrandsa1 is not online. abdulimrandsa1
Joined: 11 May 2008
Total Posts: 1666
21 Jan 2011 04:49 PM
OMG it works in an empty place but not in one that has bricks.
????
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