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: Help please?

Previous Thread :: Next Thread 
Virtualdarks is not online. Virtualdarks
Joined: 19 Aug 2008
Total Posts: 12345
07 Jun 2012 10:43 PM
function onClicked()
stone = Instance.new("Part")
stone.Parent = game.Workspace
stone.Size = Vector3.new(3,3,3)
stone.Anchored = false
stone.CanCollide = true
stone.Material = 3
stone.Position = script.Parent.Parent.drop.Position
script.Parent.ClickDetector.MaxActivationDistance = 0
script.Parent.BrickColor = BrickColor.new("Really black")
wait(1)
script.Parent.BrickColor = BrickColor.new("Bright green")
script.Parent.ClickDetector.MaxActivationDistance = 32
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)

---

Output says it's correct, yet it doesn't do anything. Anyone help? :c

-Virtualdarks
Report Abuse
1pie23 is not online. 1pie23
Joined: 11 Jul 2010
Total Posts: 1865
07 Jun 2012 10:46 PM
It works fine. Other than the fact that it spawns at 0,0,0. You forgot pos.
Report Abuse
Virtualdarks is not online. Virtualdarks
Joined: 19 Aug 2008
Total Posts: 12345
07 Jun 2012 10:47 PM
"stone.Position = script.Parent.Parent.drop.Position"

This doesn't work? :U

-Virtualdarks
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
07 Jun 2012 10:48 PM
He did specify position later on. :3
Report Abuse
1pie23 is not online. 1pie23
Joined: 11 Jul 2010
Total Posts: 1865
07 Jun 2012 10:49 PM
I was dropped as a baby.
Report Abuse
Virtualdarks is not online. Virtualdarks
Joined: 19 Aug 2008
Total Posts: 12345
07 Jun 2012 10:49 PM
Huh.

It's still not working despite me putting a specific position.

Is the script structure out of date by any chance, or did I simply forgot something major?

-Virtualdarks
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
07 Jun 2012 10:50 PM
Try inserting a new script, copying everything there and deleting the old one...
Report Abuse
1pie23 is not online. 1pie23
Joined: 11 Jul 2010
Total Posts: 1865
07 Jun 2012 10:50 PM
Maybe it has something to do with activation distance. Is that a unit or magnitude?
Report Abuse
Swordphin123 is not online. Swordphin123
Joined: 09 Apr 2008
Total Posts: 5234
07 Jun 2012 11:00 PM
Check if the script is disabled.
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