|
| 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
|
  |
| 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 |
|
|
|
| 07 Jun 2012 10:47 PM |
"stone.Position = script.Parent.Parent.drop.Position"
This doesn't work? :U
-Virtualdarks |
|
|
| Report Abuse |
|
|
|
| 07 Jun 2012 10:48 PM |
| He did specify position later on. :3 |
|
|
| Report Abuse |
|
|
1pie23
|
  |
| Joined: 11 Jul 2010 |
| Total Posts: 1865 |
|
| |
|
|
| 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 |
|
|
|
| 07 Jun 2012 10:50 PM |
| Try inserting a new script, copying everything there and deleting the old one... |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 07 Jun 2012 11:00 PM |
| Check if the script is disabled. |
|
|
| Report Abuse |
|
|