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: Someone fix this script (with output)

Previous Thread :: Next Thread 
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
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
Phantom0922 is not online. Phantom0922
Joined: 15 May 2010
Total Posts: 151
24 Feb 2013 02:28 AM
Try adding ) after P.Cframe = Cframe.new(spawner.Position
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
24 Feb 2013 02:51 AM
Thanks, will try.
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
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 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
24 Feb 2013 03:52 AM
[ Content Deleted ]
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
24 Feb 2013 03:58 PM
Thank you so much woof!
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