imike218
|
  |
| Joined: 28 Nov 2010 |
| Total Posts: 350 |
|
|
| 01 Feb 2012 08:15 PM |
local nameoftool = "Dance!" local responseA = "Heres the dance tool." local responseB = "You already have the dance tool!"
function onSelect(plyr,Give)
if Give.Name == "Give" then if plyr.Backpack:findFirstChild(tostring(nameoftool)) == nil then
local tool = game.Lighting:findFirstChild(nameoftool):clone() tool.Parent = plyr.Backpack Give.ResponseDialog = (tostring(responseA))
elseif plyr.Backpack:findFirstChild(tostring(nameoftool)) ~= nil then
Give.ResponseDialog = (tostring(responseB))
end end end
script.Parent.Parent.DialogChoiceSelected:connect(onSelect) |
|
|
| Report Abuse |
|
|
imike218
|
  |
| Joined: 28 Nov 2010 |
| Total Posts: 350 |
|
|
| 01 Feb 2012 08:16 PM |
| bump. plz guys i need help |
|
|
| Report Abuse |
|
|
|
| 01 Feb 2012 08:17 PM |
| Are you sure the tool is in the lighting service? |
|
|
| Report Abuse |
|
|
imike218
|
  |
| Joined: 28 Nov 2010 |
| Total Posts: 350 |
|
|
| 01 Feb 2012 08:26 PM |
| yes. if im correct it goes under lighting right? |
|
|
| Report Abuse |
|
|
|
| 01 Feb 2012 08:31 PM |
| Yes, and make sure it has that EXACT name. |
|
|
| Report Abuse |
|
|
|
| 01 Feb 2012 08:33 PM |
| Also, make sure the Dialog is script.Parent.Parent.Dialog. |
|
|
| Report Abuse |
|
|
|
| 01 Feb 2012 08:33 PM |
| The Dialog should be the parent of the scripts, parent |
|
|
| Report Abuse |
|
|
imike218
|
  |
| Joined: 28 Nov 2010 |
| Total Posts: 350 |
|
|
| 01 Feb 2012 08:41 PM |
that seems to be the problem. fixed with your suggestions of script.Parent.Parent.Dialog. |
|
|
| Report Abuse |
|
|
| |
|