|
| 24 Aug 2012 08:05 PM |
script.Parent.DialogChoiceSelected:connect(function(plr,choice) if choice.Name == "Sword" and plr and not plr.leaderstats["Successful Shots"].Value >= 30 then script.Parent.Sword.ResponseDialog = "Not enough." end end)
The if statement, the output says:
21:04:53 - Workspace.NPC.Head.Dialog.Dialog Script:10: attempt to compare number with boolean 21:04:53 - Script "Workspace.NPC.Head.Dialog.Dialog Script", Line 10 21:04:53 - stack end 21:04:53 - Disconnected event because of exception
Line 10 is the if statement. I don't get what they are saying... |
|
|
| Report Abuse |
|
|
| |
|
dave2011
|
  |
| Joined: 02 Oct 2010 |
| Total Posts: 10581 |
|
|
| 24 Aug 2012 08:08 PM |
30 is a number and im guessing your leaderstat value is a Boolean value, if it isnt then i have no idea what is wrong |
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Aug 2012 08:09 PM |
| A BoolValue would break it... |
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Aug 2012 08:18 PM |
script.Parent.DialogChoiceSelected:connect(function(plr,choice) if choice.Name == "Sword" and plr.leaderstats["Successful Shots"].Value >= 30 then script.Parent.Sword.ResponseDialog = "Not enough." end end) |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2012 08:31 PM |
not plr.leaderstats["Successful Shots"].Value >= 30
Just do:
(if) plr.leaderstats["Successful Shots"].Value < 30
¤¤ †KMXD† ¤¤ [SHG Tier~3] |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2012 08:32 PM |
| I did, but in online mode it doesn't do that, it just still says the actually response. |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2012 09:02 PM |
| I hate trolling scripts that don't work in Online Mode. It ruined my old Titanic game. >:c |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2012 09:04 PM |
^LOL U should ask "swimguy777" about scripts that don't work online.
¤¤ †KMXD† ¤¤ [SHG Tier~3] |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2012 09:09 PM |
Shut up Knight :(
-[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]- |
|
|
| Report Abuse |
|
|
| |
|