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: Delete Part scrlectionbox at mouse.Target

Previous Thread :: Next Thread 
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
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 is not online. enes130
Joined: 22 Mar 2011
Total Posts: 1403
06 Oct 2012 11:09 AM
Instance.new("SelectionBox")

Should be

Game:GetService("SelectionBox")
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
06 Oct 2012 11:11 AM
bamp
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
06 Oct 2012 11:17 AM
an output would be nice
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
06 Oct 2012 03:24 PM
Nothing.

@enes, that would do nothing for me.
Report Abuse
Crazace is not online. 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
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
06 Oct 2012 03:45 PM
@craz, That does nothing.
Report Abuse
Crazace is not online. Crazace
Joined: 06 Dec 2010
Total Posts: 3414
06 Oct 2012 03:48 PM
K then I'm totes redic.
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
06 Oct 2012 04:14 PM
Anyone else?
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
06 Oct 2012 04:16 PM
Once again

an output would really help
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
06 Oct 2012 04:24 PM
Once again

there is none
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
06 Oct 2012 04:39 PM
..
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
06 Oct 2012 05:03 PM
Wow scripting helpers is dead today.
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
06 Oct 2012 05:11 PM
dot dot dot dot dot dot dot dot dot dot dot

BRING UP MY POST!

BUMP
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
06 Oct 2012 05:56 PM
cumon
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
06 Oct 2012 08:24 PM
dot dot
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
06 Oct 2012 08:49 PM
. . .

Instance.new("SelectionBox", mouse.Target).Adornee = mouse.Target


¤ ¤ † K M X D † ¤ ¤
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
06 Oct 2012 09:14 PM
Nothing
Report Abuse
ServerLabs is not online. ServerLabs
Joined: 29 Dec 2010
Total Posts: 2263
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
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