|
| 06 Oct 2012 11:03 AM |
So I have this script that deletes parts if their name is in the table. This is in a localscript and works fine, but it doesn't make a SelectionBox around the part the mouse is hovering on. Please help!
local player = game.Players.LocalPlayer local parts = {player.Name .. "sPart1", player.Name .. "sPart2",player.Name .. "sPart3",player.Name .. "sPart4",player.Name .. "sPart5",player.Name .. "sPart6",player.Name .. "sPart7",player.Name .. "sPart8",player.Name .. "sPart9",player.Name .. "sPart10"}
script.Parent.Selected:connect(function(mouse) mouse.Button1Down:connect(function() --DOWN! mouse.Move:connect(function() Instance.new("SelectionBox").Adornee = mouse.Target end) --UP! if mouse.Target:IsA("Part") then for _,v in pairs(parts) do if v == mouse.Target.Name then mouse.Target:Destroy() end end end end) end)
|
|
|
| Report Abuse |
|
|
enes130
|
  |
| Joined: 22 Mar 2011 |
| Total Posts: 1403 |
|
|
| 06 Oct 2012 11:09 AM |
Instance.new("SelectionBox")
Should be
Game:GetService("SelectionBox") |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 06 Oct 2012 03:24 PM |
Nothing.
@enes, that would do nothing for me. |
|
|
| Report Abuse |
|
|
Crazace
|
  |
| Joined: 06 Dec 2010 |
| Total Posts: 3414 |
|
|
| 06 Oct 2012 03:35 PM |
LOol I'm probably stupid but...here goes...
Instance.new("SelectionBox", game.Workspace)
then set adornee and stuff.
I'm probably "totes redic". But ye |
|
|
| Report Abuse |
|
|
| |
|
Crazace
|
  |
| Joined: 06 Dec 2010 |
| Total Posts: 3414 |
|
| |
|
| |
|
|
| 06 Oct 2012 04:16 PM |
Once again
an output would really help |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 06 Oct 2012 05:03 PM |
| Wow scripting helpers is dead today. |
|
|
| Report Abuse |
|
|
|
| 06 Oct 2012 05:11 PM |
dot dot dot dot dot dot dot dot dot dot dot
BRING UP MY POST!
BUMP |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 06 Oct 2012 08:49 PM |
. . .
Instance.new("SelectionBox", mouse.Target).Adornee = mouse.Target
¤ ¤ † K M X D † ¤ ¤ |
|
|
| Report Abuse |
|
|
| |
|
|
| 06 Oct 2012 09:23 PM |
@enes130 There is no game:GetService("SelectionBox"), maybe you were thinking of game:GetService("Selection") http://wiki.roblox.com/index.php/GetService_(Function)
@OP Are you using mouse.Target in a LocalScript?
|
|
|
| Report Abuse |
|
|