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 » Roblox » All Things ROBLOX
Home Search
 

Re: This script wont work

Previous Thread :: Next Thread 
UPumpkin is not online. UPumpkin
Joined: 26 Jan 2010
Total Posts: 590
27 Aug 2015 08:22 PM
local a = game.Workspace.Pizza:Clone()
a.Parent = game.Workspace
a.Position = Vector3.new(math.random(-11,-59),math.random(25.,25.5),math.random(1,50))



Should this be a local script.
Should this be the child of pizza (under pizza)
Report Abuse
Am4uryXp is not online. Am4uryXp
Joined: 04 Sep 2011
Total Posts: 20550
27 Aug 2015 08:23 PM
Don't use free models,
and no, don't use local scripts for that
Report Abuse
Hoshijiro is not online. Hoshijiro
Joined: 20 Aug 2008
Total Posts: 4105
27 Aug 2015 08:25 PM
Don't use local scripts.
And no, it doesn't need to be a child of Pizza.
Report Abuse
Hoshijiro is not online. Hoshijiro
Joined: 20 Aug 2008
Total Posts: 4105
27 Aug 2015 08:25 PM
Is it not working because :Clone() has a capital C?
Report Abuse
Am4uryXp is not online. Am4uryXp
Joined: 04 Sep 2011
Total Posts: 20550
27 Aug 2015 08:28 PM
Both :Clone() and :clone() work even if the ''C'' is capitalized
Report Abuse
TheInnovative is not online. TheInnovative
Joined: 31 Dec 2008
Total Posts: 23486
27 Aug 2015 08:33 PM
math.random can't do negatives, so replace

math.random(-11, -59)

with

-math.random(11, 59)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » All Things ROBLOX
   
 
   
  • 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