generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Why won;t it dance?

Previous Thread :: Next Thread 
theuntimelydoctor is not online. theuntimelydoctor
Joined: 30 Jun 2011
Total Posts: 718
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
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
20 Sep 2012 05:07 PM
You're function says that the Dialog is in the workspace, not the head.
Report Abuse
theuntimelydoctor is not online. theuntimelydoctor
Joined: 30 Jun 2011
Total Posts: 718
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
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
20 Sep 2012 05:12 PM
local Tool = script.Parent -- You're p was lower case.
Report Abuse
theuntimelydoctor is not online. theuntimelydoctor
Joined: 30 Jun 2011
Total Posts: 718
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
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
20 Sep 2012 05:22 PM
Sure, I can try it out and probably fix it.
Report Abuse
theuntimelydoctor is not online. theuntimelydoctor
Joined: 30 Jun 2011
Total Posts: 718
20 Sep 2012 05:24 PM
http://www.roblox.com/For-Blackboy-item?id=93180059
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
20 Sep 2012 05:32 PM
Found the problem. Lol.
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
20 Sep 2012 05:33 PM
this script burns my eyes

please get it away
Report Abuse
theuntimelydoctor is not online. theuntimelydoctor
Joined: 30 Jun 2011
Total Posts: 718
20 Sep 2012 05:34 PM
What is the problem?
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
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
theuntimelydoctor is not online. theuntimelydoctor
Joined: 30 Jun 2011
Total Posts: 718
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
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
20 Sep 2012 05:47 PM
Oh yea, forgot to tell you the other mistake.

Else -- lower case the e.
Report Abuse
theuntimelydoctor is not online. theuntimelydoctor
Joined: 30 Jun 2011
Total Posts: 718
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
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
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
theuntimelydoctor is not online. theuntimelydoctor
Joined: 30 Jun 2011
Total Posts: 718
20 Sep 2012 06:19 PM
Now I get

Play is not a valid member of Animation
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
20 Sep 2012 06:20 PM
Lolwut?
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
20 Sep 2012 06:20 PM
@the

That doesn't even make sense
Report Abuse
theuntimelydoctor is not online. theuntimelydoctor
Joined: 30 Jun 2011
Total Posts: 718
20 Sep 2012 06:23 PM
Then look at it yourself

http://www.roblox.com/For-Blackboy-item?id=93180059
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
20 Sep 2012 06:24 PM
@the

It still doesn't work
Report Abuse
theuntimelydoctor is not online. theuntimelydoctor
Joined: 30 Jun 2011
Total Posts: 718
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
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
20 Sep 2012 06:33 PM
I'm going to try again. Hope this worked. :)
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
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
theuntimelydoctor is not online. theuntimelydoctor
Joined: 30 Jun 2011
Total Posts: 718
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
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
20 Sep 2012 06:47 PM
local AnimationD
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image