|
| 11 Aug 2012 11:04 AM |
...PM me the request.
~Mathfreak231, most generous SHer ever ~This sig is false~ |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2012 11:04 AM |
Sorry, title fix.
~This sig is false~ |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
| |
|
|
| 11 Aug 2012 11:06 AM |
@miz
*innocently points to title* Stick to the topic, pl0x.
~This sig is false~ |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 11 Aug 2012 11:09 AM |
Fine. I'll give you a challenge.
Make two tables. One with nouns and one with adjectives.
example
noun = {"Mcdonalds","Obama","Burger king"} adj = {"Smelly","Boss","ugly"}
For each noun I want you to compare with all the adjectives and only print IF both words are even.
Example
Smelly Mcdonalds -- odd Boss Mcdonalds -- even
And so on.
If you wish to do it mathfreak good luck. |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 11 Aug 2012 11:10 AM |
| OH and for my challenge you need at least six values in both tables. |
|
|
| Report Abuse |
|
|
Valiant8
|
  |
| Joined: 21 Jul 2012 |
| Total Posts: 308 |
|
|
| 11 Aug 2012 11:13 AM |
if Player.Humanoid.Sit = True Player.Torso.Anchored = True Player.Head.Anchored = True then if Player.OnTouched.Player = True wait(15) then Player.Humanoid.Health = +100 Player.Head.Anchored = False Player.Torso.Anchored = False Player.Humanoid.Stand = True elseif Print ("Invalid") end end end) end end) end
Gah! i'm so troubled I want the script to check to make sure the player's Torso and Head is Anchored and there siting and if it is then it checks to see if another player is touching them for 15 seconds then they'll be unanchored and be back to full health and they'll stand up. Please help thank you,
If you're wondering why I'm needing this then here's the other script that goes hand and hand for this script
local Humanoid = game.Players:GetChildren() --What's humanoid
if Humanoid.Health 20 > 100 then wait(0.1) Head.Anchored = True Torso.Anchored = True elseif Wait(0.1) Head.Anchored = False Torso.Anchored = False end end end
also Thank you Xnite for fixing this second script ))
Those two scripts need fixed :/ |
|
|
| Report Abuse |
|
|
Valiant8
|
  |
| Joined: 21 Jul 2012 |
| Total Posts: 308 |
|
|
| 11 Aug 2012 11:14 AM |
| When i thanked xnite aparently he did not fix it |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 11 Aug 2012 11:16 AM |
@valiant
If statements require two equal signs for comparing stuff.
Booleanse are case sensitive. |
|
|
| Report Abuse |
|
|
Valiant8
|
  |
| Joined: 21 Jul 2012 |
| Total Posts: 308 |
|
|
| 11 Aug 2012 11:17 AM |
That still wouldnt fix it it's a well revive scritp basically |
|
|
| Report Abuse |
|
|
Valiant8
|
  |
| Joined: 21 Jul 2012 |
| Total Posts: 308 |
|
|
| 11 Aug 2012 11:17 AM |
local Humanoid = game.Players:GetChildren() --What's humanoid
if Humanoid.Health 20 > 100 then wait(0.1) Head.Anchored == True Torso.Anchored == True elseif Wait(0.1) Head.Anchored == False Torso.Anchored == False end end end
? |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 11 Aug 2012 11:18 AM |
Well there's a lot of things to fix.
But since you didn't take a little time to tell you what to first fix I can't trust you. So, I'm out.
~"Mark Cuban"~ |
|
|
| Report Abuse |
|
|
Valiant8
|
  |
| Joined: 21 Jul 2012 |
| Total Posts: 308 |
|
|
| 11 Aug 2012 11:19 AM |
plus this
then Player.Humanoid.Health == + 100 Player.Head.Anchored == False Player.Torso.Anchored == False Player.Humanoid.Stand == True elseif Print ("Invalid") end end end) end end) end
|
|
|
| Report Abuse |
|
|
Valiant8
|
  |
| Joined: 21 Jul 2012 |
| Total Posts: 308 |
|
|
| 11 Aug 2012 11:20 AM |
Ok you can't trust me? droid and dr hurry up with the episodes
|
|
|
| Report Abuse |
|
|
Valiant8
|
  |
| Joined: 21 Jul 2012 |
| Total Posts: 308 |
|
|
| 11 Aug 2012 11:21 AM |
| Well lets see remove the ends? and uhh == instead of = got ya that does not work so. |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2012 11:35 AM |
| Miz, your challenge makes no sense whatsoever. |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 11 Aug 2012 11:38 AM |
Uhh, it kind of does.
What's so hard about it?
Make two tables. One that has nouns and one with adjectives. For all the nouns compare with the adjectives and make it print both adjectives and nouns together if the length of the string is even. |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2012 11:40 AM |
| @Miz you didnt count the spaces. Nor did you tell us the format of how it should go. |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2012 11:43 AM |
| Last time I checked, "Smelly" had an even number of characters, and McDonalds had an odd number. Your examples are unlegitimate. |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 11 Aug 2012 11:43 AM |
I did count the spaces if you looked at the example.
By format you mean how you should program it? If you mean it by that way then it doesn't matter. As long as you complete the challenge and if I add an extra value to both tables it still works fine.
Mathfreak seemed to get it. |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2012 11:54 AM |
| Wait. Do you want to *compare* the strings, or add them as a whole and check if *that* is even? Please be consistent- in the description you said the former, but in the example you did the latter. |
|
|
| Report Abuse |
|
|
Valiant8
|
  |
| Joined: 21 Jul 2012 |
| Total Posts: 308 |
|
|
| 11 Aug 2012 11:57 AM |
| King your character looks cool. |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 11 Aug 2012 12:22 PM |
| Add them as a whole and compare the length of the string. Print only if it's even. Like your second choice. |
|
|
| Report Abuse |
|
|
Valiant8
|
  |
| Joined: 21 Jul 2012 |
| Total Posts: 308 |
|
| |
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 11 Aug 2012 12:35 PM |
"How is boss a adjective"
How is a not an in that sentence?
|
|
|
| Report Abuse |
|
|