|
| 20 Sep 2012 05:05 PM |
I put this inside a replica of me (Is a humanoid) (It has all the animations I need for this too) and I put this in it yet when I talk to it and and tell it what to do (In dialog) it does nothing and an error in out put appears saying 18:03:43.803 - Workspace.Dancer.Head.Dialog.Script:11: function arguments expected near 'Tool'
PLEASE HELP
local Tool = script.parent
local Humanoid = workspace.Dancer.Humanoid
workspace.Dialog.DialogChoiceSelected:connect(function(player,choice) if choice.Name == "Dance" then Tool.Jig1:Stop Tool.dance1:Play() else if choice.Name == "Jig" then Tool.Jig1:Play() Tool.Dance1:Stop() Else end end)
|
|
|
| Report Abuse |
|
|
|
| 20 Sep 2012 05:07 PM |
| You're function says that the Dialog is in the workspace, not the head. |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2012 05:11 PM |
Thank you, but now this pops up in output D:
Workspace.Dancer.Head.Dialog.Script:11: function arguments expected near 'Tool' |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2012 05:12 PM |
| local Tool = script.Parent -- You're p was lower case. |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2012 05:20 PM |
| Thanks di that same output though. DO you want me to give you a model of it? |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2012 05:22 PM |
| Sure, I can try it out and probably fix it. |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2012 05:24 PM |
| http://www.roblox.com/For-Blackboy-item?id=93180059 |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Sep 2012 05:33 PM |
this script burns my eyes
please get it away |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Sep 2012 05:40 PM |
You have several problems:
the humanoid in the Dancer is not called humanoid so local humanoid = workspace.Dancer.humanoid wont work. Just change the Dancer's humanoid's name to humanoid.
The line before the problem where it says: Tool.Jig1:Stop you forgot the parentheses so change it to Tool.Jig1:Stop()
and the animations arent in the head so you have to add 2 more Parents to the local tool: local Tool = script.Parent.Parent.Parent
and you have to remove the space between else and if in line 12. |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2012 05:44 PM |
WOw alot of mistakes (Thank you). But one more thing my output now is
Workspace.Dancer.Head.Dialog.Script:16: '=' expected near 'end' |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2012 05:47 PM |
Oh yea, forgot to tell you the other mistake.
Else -- lower case the e.
|
|
|
| Report Abuse |
|
|
|
| 20 Sep 2012 05:51 PM |
Wow my script is seriously messed up D:. My new output
18:51:10.229 - Stop is not a valid member of Animation 18:51:10.230 - Script "Workspace.Dancer.Head.Dialog.Script", Line 10 |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2012 06:00 PM |
| There is no way to fix it. Just remove that line and make it wait until it stops for it could play. |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2012 06:19 PM |
Now I get
Play is not a valid member of Animation |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Sep 2012 06:20 PM |
@the
That doesn't even make sense |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2012 06:23 PM |
Then look at it yourself
http://www.roblox.com/For-Blackboy-item?id=93180059 |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Sep 2012 06:29 PM |
| You said the output made no sense check the output. Also I know it doesn't work that's why I want help D: |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2012 06:33 PM |
| I'm going to try again. Hope this worked. :) |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2012 06:43 PM |
Try this:
local Tool = script.Parent.Parent.Parent
local Humanoid = workspace.Dancer.Humanoid
workspace.Dancer.Head.Dialog.DialogChoiceSelected:connect(function(player,choice) if choice.Name == "Dance" then if Tool:findFirstChild("Jig") then Tool.Jig:remove() end animationD = Instance.new("Animation") animationD.Parent = Tool animation.Name = "Dance" animationD.AnimationId = "http://www.roblox.com/Asset?ID=27789359" wait(30) animationD:remove() elseif choice.Name == "Jig" then if Tool:findFirstChild("Dance") then Tool.Dance:remove() end animationJ = Instance.new("Animation") animationJ.Parent = Tool animationJ.Name = "Jig" animationJ.AnimationId = "http://www.roblox.com/Asset?ID=45834924" end end)
|
|
|
| Report Abuse |
|
|
|
| 20 Sep 2012 06:46 PM |
19:45:52.821 - Workspace.Dancer.Head.Dialog.Script:15: attempt to index global 'animation' (a nil value) 19:45:52.822 - Script "Workspace.Dancer.Head.Dialog.Script", Line 15 |
|
|
| Report Abuse |
|
|
| |
|