|
| 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
|
  |
| Joined: 11 May 2009 |
| Total Posts: 180 |
|
| |
|
|
| 20 Jan 2011 09:01 PM |
Again im horrible at scripting. WHAT IS THAT? |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 20 Jan 2011 09:10 PM |
| Can just PLEASE fix the script instead of mocking me? |
|
|
| Report Abuse |
|
|
Spikexp
|
  |
| Joined: 05 Aug 2008 |
| Total Posts: 513 |
|
|
| 20 Jan 2011 09:13 PM |
| Nobody was mocking you though... |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 20 Jan 2011 09:57 PM |
| Ok can some one please just fix the script |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 21 Jan 2011 09:28 AM |
| I used values.... as group ID, enemy groups... |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
| |
|
|
| 21 Jan 2011 01:05 PM |
| Thanks for trying but it didnt work. |
|
|
| Report Abuse |
|
|
ellosss
|
  |
| Joined: 15 Mar 2009 |
| Total Posts: 7030 |
|
|
| 21 Jan 2011 01:09 PM |
| Where are you testing this..? ^^ |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
| |
|
| |
|
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
|
  |
| 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 |
|
|
|
| 21 Jan 2011 04:44 PM |
Thanks ellosss ur third one worked! THANK YOU |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2011 04:49 PM |
OMG it works in an empty place but not in one that has bricks. ???? |
|
|
| Report Abuse |
|
|