Rairyu
|
  |
| Joined: 11 Apr 2011 |
| Total Posts: 815 |
|
|
| 30 Jul 2011 08:21 PM |
I know HopperBins are old but I really need help. Here is the script.
bin = script.Parent barrier = nil hold = false local debounce = false
lifetime = 5
function onButton1Down(mouse) local b = Instance.new("Part") b.Parent = game.Workspace b.BrickColor = "Medium blue" b.Position = Mouse.Hit.p b.Transparency = 0.5 b.Size = Vector3.new(50,50,50) b.Shape = Square wait(lifetime) b:remove() end
function onSelected(mouse) mouse.Icon = "rbxasset://textures//GunCursor.png mouse.Button1Down:connect (funtction() onButton1Down(mouse) end) end script.Parent.Selected:connect(onSelected)
Every time I put this in the starterPack and it activates it will not create a barrier or show the icon. Can you fix this? Please do not tell me in the Workspace, that is not where it belongs. |
|
|
| Report Abuse |
|
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 30 Jul 2011 08:22 PM |
-- Hope this script is in a hopperbin e_e
bin = script.Parent barrier = nil hold = false local debounce = false
lifetime = 5
function onButton1Down(mouse) local b = Instance.new("Part") b.Parent = game.Workspace b.BrickColor = "Medium blue" b.Position = Mouse.Hit.p b.Transparency = 0.5 b.Size = Vector3.new(50,50,50) b.Shape = Square wait(lifetime) b:remove() end
function onSelected(mouse) mouse.Icon = "rbxasset://textures//GunCursor.png" mouse.Button1Down:connect (funtction() onButton1Down(mouse) end) end script.Parent.Selected:connect(onSelected) |
|
|
| Report Abuse |
|
|
Rairyu
|
  |
| Joined: 11 Apr 2011 |
| Total Posts: 815 |
|
|
| 30 Jul 2011 08:27 PM |
It was... And that is what I just put. |
|
|
| Report Abuse |
|
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 30 Jul 2011 08:28 PM |
| No, you forgot a quotation sign while setting the cursor asset. |
|
|
| Report Abuse |
|
|
Rairyu
|
  |
| Joined: 11 Apr 2011 |
| Total Posts: 815 |
|
|
| 30 Jul 2011 08:30 PM |
| Well in that post I did not but my script it has the other quotation just was typing fast sorry Spectrumw |
|
|
| Report Abuse |
|
|
Rairyu
|
  |
| Joined: 11 Apr 2011 |
| Total Posts: 815 |
|
|
| 30 Jul 2011 08:32 PM |
Ok really I have to use my ultimate attack! Bump. |
|
|
| Report Abuse |
|
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 30 Jul 2011 08:33 PM |
bin = script.Parent barrier = nil hold = false local debounce = false
lifetime = 5
function onButton1Down(mouse) local b = Instance.new("Part") b.Parent = game.Workspace b.BrickColor = BrickColor.new("Medium blue") b.Position = Mouse.Hit.p b.Transparency = 0.5 b.formFactor = "Custom" b.Size = Vector3.new(50,50,50) wait(lifetime) b:remove() end
function onSelected(mouse) mouse.Icon = "rbxasset://textures//GunCursor.png" mouse.Button1Down:connect (funtction() onButton1Down(mouse) end) end script.Parent.Selected:connect(onSelected)
Didn't notice some details. |
|
|
| Report Abuse |
|
|
Rairyu
|
  |
| Joined: 11 Apr 2011 |
| Total Posts: 815 |
|
|
| 30 Jul 2011 08:38 PM |
| The very odd thing is I can' t test the HopperBin in StarterPack and only in Workspace and now it is saying Selected is not a valid member of Workspace. I put in the formFactor. So lets see. |
|
|
| Report Abuse |
|
|
Rairyu
|
  |
| Joined: 11 Apr 2011 |
| Total Posts: 815 |
|
|
| 30 Jul 2011 08:49 PM |
| Well now I see the icon but not the barrier. What do I do now? |
|
|
| Report Abuse |
|
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 30 Jul 2011 08:50 PM |
Blargh e_e
bin = script.Parent barrier = nil hold = false local debounce = false
lifetime = 5
function onButton1Down(mouse) local b = Instance.new("Part") b.Parent = game.Workspace b.BrickColor = BrickColor.new("Medium blue") b.Position = mouse.Hit.p b.Transparency = 0.5 b.formFactor = "Custom" b.Size = Vector3.new(50,50,50) wait(lifetime) b:remove() end
function onSelected(mouse) mouse.Icon = "rbxasset://textures//GunCursor.png" mouse.Button1Down:connect (function() onButton1Down(mouse) end) end script.Parent.Selected:connect(onSelected) |
|
|
| Report Abuse |
|
|
Rairyu
|
  |
| Joined: 11 Apr 2011 |
| Total Posts: 815 |
|
|
| 30 Jul 2011 09:05 PM |
| Once again whats the difference? |
|
|
| Report Abuse |
|
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 30 Jul 2011 09:07 PM |
| You misstyped 'function' in the lower part of the script and you called the variable 'Mouse', which doesn't exist, while 'mouse' does. |
|
|
| Report Abuse |
|
|
Rairyu
|
  |
| Joined: 11 Apr 2011 |
| Total Posts: 815 |
|
|
| 30 Jul 2011 09:09 PM |
| Ok I changed the capital M to a lowercase m but still no brick. |
|
|
| Report Abuse |
|
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 30 Jul 2011 09:10 PM |
| Why you don't copy & paste my script? That way is better o_e |
|
|
| Report Abuse |
|
|
Rairyu
|
  |
| Joined: 11 Apr 2011 |
| Total Posts: 815 |
|
|
| 30 Jul 2011 09:10 PM |
| Bump. It still didn' t work. |
|
|
| Report Abuse |
|
|
Rairyu
|
  |
| Joined: 11 Apr 2011 |
| Total Posts: 815 |
|
|
| 30 Jul 2011 09:11 PM |
| I tried copying an pasting it woudnt wok... |
|
|
| Report Abuse |
|
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 30 Jul 2011 09:12 PM |
| If you gave me any Output -.- I'm tired of going through the script without any sort of hint of what the problem is. |
|
|
| Report Abuse |
|
|
Rairyu
|
  |
| Joined: 11 Apr 2011 |
| Total Posts: 815 |
|
|
| 30 Jul 2011 09:16 PM |
| well I would but I only can put the script in the Workspace not the StarterPack and it says Selected not valid in Workspace. |
|
|
| Report Abuse |
|
|
Rairyu
|
  |
| Joined: 11 Apr 2011 |
| Total Posts: 815 |
|
|
| 30 Jul 2011 09:20 PM |
So I would tell you what it says in the output but it only says Selected not valid in Workspace but I only can test it in the Workspace not the StarterPack. Bump. |
|
|
| Report Abuse |
|
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 30 Jul 2011 09:21 PM |
| I can't tell if you are serious or if you are just a troll ._. |
|
|
| Report Abuse |
|
|
Rairyu
|
  |
| Joined: 11 Apr 2011 |
| Total Posts: 815 |
|
|
| 30 Jul 2011 09:33 PM |
I am serious. I hardly post on the forums. if I was a troll, I post on the forum 20x more. |
|
|
| Report Abuse |
|
|
Rairyu
|
  |
| Joined: 11 Apr 2011 |
| Total Posts: 815 |
|
| |
|
Rukiryo
|
  |
| Joined: 04 Sep 2009 |
| Total Posts: 1490 |
|
|
| 30 Jul 2011 09:46 PM |
| Yea-I'd back away from hopperbins if I were you. And the fact that hopperbins are old is irrelovant. ROBLOXians were old, who cares..things are just made in a list of priorities. Okay, first of all, if you are pasting a script that has av event, like selected, and putting it in workspace, stop trying to script hopperbins, you need to learn the absolute basics. The selected event is ran when a hopperbin is selected. Can you select workspace, while playing the game? No, you can't. The workspace doesn't have a selected event. I agree, you sounded extremely stupid up there, and it would make sense if you were a troll. If it i not in a hopperbin, it will not work. Good day. |
|
|
| Report Abuse |
|
|
Spectrumz
|
  |
| Joined: 22 Mar 2011 |
| Total Posts: 4338 |
|
|
| 30 Jul 2011 09:49 PM |
@Rukiryo
But, he DOES have a point. The output will only go through scripts in Workspace.
u bof r trols yah i sed it |
|
|
| Report Abuse |
|
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 30 Jul 2011 09:51 PM |
@Spectrumz If he uses Build Mode the output will work for Hopperbins é_e |
|
|
| Report Abuse |
|
|