|
| 14 Apr 2015 08:51 PM |
so I have code below for getting all the selected items, if it's 3 then add them to a table and then use a module to draw a triangle between those 3 points, but I have 3 parts selected and it only adds one of them.
this is for a plugin btw.
Also, don't change anything like 'v:IsA("Part")' because I know about BasePart, I just want to make it so ONLY parts can be used as nodes.
for _,v in ipairs(game.Selection:Get()) do print("A") print(v:IsA("Part")) if #game.Selection:Get() == 3 and v:IsA("Part") then table.insert(nodes, 1, v) print(unpack(nodes)) print(#nodes) tri.draw(nodes[1],nodes[2],nodes[3],0.2) db2 = false else print("You are selecting more/less than 3 parts or something you have selected is not a part!") db2 = false return end end
"Oh yeah? You think I care? Who needs ya! Go on, write what you want! I'm bulletproof, baby!" |
|
|
| Report Abuse |
|
|
|
| 14 Apr 2015 08:52 PM |
its becuas u scripted it wrong
duh |
|
|
| Report Abuse |
|
|
|
| 14 Apr 2015 09:02 PM |
b
"Oh yeah? You think I care? Who needs ya! Go on, write what you want! I'm bulletproof, baby!" |
|
|
| Report Abuse |
|
|
|
| 14 Apr 2015 09:07 PM |
can someone please help
"Oh yeah? You think I care? Who needs ya! Go on, write what you want! I'm bulletproof, baby!"
|
|
|
| Report Abuse |
|
|
|
| 14 Apr 2015 09:41 PM |
b2
"Oh yeah? You think I care? Who needs ya! Go on, write what you want! I'm bulletproof, baby!" |
|
|
| Report Abuse |
|
|
DevVince
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 9245 |
|
|
| 14 Apr 2015 09:44 PM |
"Oh yeah? You think I care? Who needs ya! Go on, write what you want! I'm bulletproof, baby!"
Ok you don't want help and you care. Bye bye |
|
|
| Report Abuse |
|
|
vacha
|
  |
| Joined: 06 Jan 2011 |
| Total Posts: 1993 |
|
| |
|
|
| 14 Apr 2015 09:50 PM |
@DevVince
are you serious
that's my siggy.
For sakes it's on everyone of my posts. Just help me please.
"Oh yeah? You think I care? Who needs ya! Go on, write what you want! I'm bulletproof, baby!" |
|
|
| Report Abuse |
|
|
|
| 14 Apr 2015 09:55 PM |
so you won't help me because you're too ignorant to realise something's my siggy?
I've been wanting help for over and hour and this is what I get, this is just fantastic isn't it.
"Oh yeah? You think I care? Who needs ya! Go on, write what you want! I'm bulletproof, baby!" |
|
|
| Report Abuse |
|
|
|
| 14 Apr 2015 09:55 PM |
over an hour*
"Oh yeah? You think I care? Who needs ya! Go on, write what you want! I'm bulletproof, baby!" |
|
|
| Report Abuse |
|
|
DevVince
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 9245 |
|
|
| 14 Apr 2015 09:58 PM |
Dunno what you're trying to do but here's this it works fine. XD
db2 = true
function checkstoof(checkarea) local nodes = {} for _,v in ipairs(checkarea:GetChildren()) do print(v.Name) if v:IsA'Part' then table.insert(nodes, 1, v) db2 = false else print'You are selecting more/less than 3 parts or something you have selected is not a part!' db2 = false return end end end
checkstoof(game.Workspace)
--If you're trying to check a players selected items maybe add the objects to a table and check the objects? |
|
|
| Report Abuse |
|
|
|
| 14 Apr 2015 09:59 PM |
oh my god.
this is for a plugin.
"Oh yeah? You think I care? Who needs ya! Go on, write what you want! I'm bulletproof, baby!" |
|
|
| Report Abuse |
|
|
DevVince
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 9245 |
|
| |
|
|
| 14 Apr 2015 10:02 PM |
'So how are your jimmies?'
This isn't 2013, that isn't funny anymore.
I'm angry because idiots like you don't see the obvious
the first line is literally 'for _,v in ipairs(game.Selection:Get()) do'
'game.Selection:Get()'
what has that got to do with checking workspace or anything like that for god sake.
"Oh yeah? You think I care? Who needs ya! Go on, write what you want! I'm bulletproof, baby!" |
|
|
| Report Abuse |
|
|
DevVince
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 9245 |
|
|
| 14 Apr 2015 10:02 PM |
Well I never read all that text you put too much to read I just looked at the code. XD
So if selected is a table then use in pairs to check the objects? |
|
|
| Report Abuse |
|
|
|
| 14 Apr 2015 10:03 PM |
just stop replying, you're not helping me at all.
"Oh yeah? You think I care? Who needs ya! Go on, write what you want! I'm bulletproof, baby!" |
|
|
| Report Abuse |
|
|
|
| 14 Apr 2015 10:04 PM |
| devvince trying very hard to be funny |
|
|
| Report Abuse |
|
|
DevVince
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 9245 |
|
|
| 14 Apr 2015 10:04 PM |
| So while you flip out for me making an example and you getting butthurt cause you can't edit something i'm going to help someone else as you're a waste of time. XD |
|
|
| Report Abuse |
|
|
|
| 14 Apr 2015 10:10 PM |
| he already said he doesn't want you to try to help him, why are you telling him that you're not gonna help him lol |
|
|
| Report Abuse |
|
|
|
| 14 Apr 2015 10:11 PM |
'So while you flip out for me making an example and you getting butthurt cause you can't edit something i'm going to help someone else as you're a waste of time. XD'
you've removed stuff that the script needs and only changed nothing drastically
you're acting like you were the answer
piss off.
"Oh yeah? You think I care? Who needs ya! Go on, write what you want! I'm bulletproof, baby!" |
|
|
| Report Abuse |
|
|
DevVince
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 9245 |
|
|
| 14 Apr 2015 10:15 PM |
Not interested in a flame war with a butthurt kid but thanks for trying. :) Just was here to see if I could help and I did not like your siggy so I left a comment on it and you flipped out.(Was ment as a joke. lolz) XD |
|
|
| Report Abuse |
|
|
|
| 14 Apr 2015 10:21 PM |
'Not interested in a flame war with a butthurt kid but thanks for trying. :) Just was here to see if I could help and I did not like your siggy so I left a comment on it and you flipped out.(Was ment as a joke. lolz) XD'
maybe I don't like waiting for help for over an hour just for some incompetent prick like you EVEN AFTER explaining what I'm trying to do still try and help me in a completely different way and change the entire script to something that isn't even directed to what I'm doing.
'I did not like your siggy'
then don't say anything and ignore it.
"Oh yeah? You think I care? Who needs ya! Go on, write what you want! I'm bulletproof, baby!" |
|
|
| Report Abuse |
|
|
|
| 14 Apr 2015 10:22 PM |
vince always changes scripts to work completely different
he did that to me ( i didnt even ask for help ) & tried to say i couldn't script lol |
|
|
| Report Abuse |
|
|
DevVince
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 9245 |
|
|
| 14 Apr 2015 10:23 PM |
| So we have to help you right away or it's not good enough for you right? |
|
|
| Report Abuse |
|
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 14 Apr 2015 10:24 PM |
OP, get out.
I don't think anyone wants to help someone who is butthurt and feels entitled to an answer. |
|
|
| Report Abuse |
|
|