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 » Scripters
Home Search
 

Re: whats wrong with this?

Previous Thread :: Next Thread 
Modern_Dev is not online. Modern_Dev
Joined: 14 Mar 2016
Total Posts: 45
10 Jan 2017 10:04 PM
its supposed to play the animation when you click with the tool equipped but it doesn't work??

Tool = script.Parent
local player = game.Players.LocalPlayer
repeat wait() until player.Character ~= nil
local hum = player.Character:WaitForChild("Humanoid")

local animation = Tool.TauntAnim
local AnimTrack = hum:LoadAnimation(animation)

Tool.Activated:connect(function(mouse)
AnimTrack:Play()
end)

Tool.Unequuipped:connect(function()
AnimTrack:Stop()
end)
Report Abuse
supremebloxboy is online. supremebloxboy
Joined: 12 Jun 2010
Total Posts: 424
11 Jan 2017 11:35 AM
You Spelled Unequipped Wrong.

Tool = script.Parent
local player = game.Players.LocalPlayer
repeat wait() until player.Character ~= nil
local hum = player.Character:WaitForChild("Humanoid")

local animation = Tool.TauntAnim
local AnimTrack = hum:LoadAnimation(animation)

Tool.Activated:connect(function(mouse)
AnimTrack:Play()
end)

Tool.Unequipped:connect(function()
AnimTrack:Stop()
end)


Report Abuse
Modern_Dev is not online. Modern_Dev
Joined: 14 Mar 2016
Total Posts: 45
11 Jan 2017 06:26 PM
oops, i just fixed it and it still doesn't work :/?
Report Abuse
supremebloxboy is online. supremebloxboy
Joined: 12 Jun 2010
Total Posts: 424
12 Jan 2017 11:57 AM
I'm guessing the Output is blank to, Does the Functions event Fire?, Try putting some prints in there and see if everything works, If so then It's something with your animation


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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