|
| 23 Feb 2013 11:15 PM |
while true do x = 1 wait(1)
P=Instance.new("Part") P.Anchored=false P.Name="Blocker" P.CanCollide=true P.Parent = script.Parent
extraheight = P.Size.Y*x --This adds the height of the other "Blockers" spawner = Workspace.findFirstChild("Spawner") P.CFrame = CFrame.new(spawner.Position + Vector3.new(0, spawner.Size.Y, 0 + Vector3.new(0, extraheight, 0)) x = x+1 end end
script.Parent.Touched:connect(function (hit) humanoidcheck = hit.Parent:findFirstChild("Humanoid") if (humanoidcheck) then hit.Parent.Humanoid.Sit = true --I have not tried this, but it should work... end end)
Output Workspace.Spawner.Script:14: ')' expected (to close '(' at line 13) near 'x' |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2013 02:28 AM |
| Try adding ) after P.Cframe = Cframe.new(spawner.Position |
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Feb 2013 02:53 AM |
Still broke New script : while true do x = 1 wait(1)
P=Instance.new("Part") P.Anchored=false P.Name="Blocker" P.CanCollide=true P.Parent = script.Parent
extraheight = P.Size.Y*x --This adds the height of the other "Blockers" spawner = Workspace:findFirstChild("Spawner") P.CFrame = CFrame.new(spawner.Position) + Vector3.new(0, spawner.Size.Y, 0 + Vector3.new(0, extraheight, 0)) x = x+1 end
script.Parent.Touched:connect(function (hit) humanoidcheck = hit.Parent:findFirstChild("Humanoid") if (humanoidcheck) then hit.Parent.Humanoid.Sit = true --I have not tried this, but it should work... end end)
New output:Workspace.Script:13: bad argument #1 to '?' (Vector3 expected, got number) |
|
|
| Report Abuse |
|
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
| |
|