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
 

Free Clickbait

Previous Thread :: Next Thread 
DanPai is online. DanPai
Joined: 03 Jun 2016
Total Posts: 355
24 Aug 2017 06:51 AM
Now that I have your attention, can you possibly answer my question?




I have this in a localscript inside of a tool, but it only works in studio. Also, I have FE on.



Tool = script.Parent
local player = game.Players.LocalPlayer
local char = player.Character or player.CharactedAdded:wait()
local hum = char:WaitForChild("Humanoid")
local Mouse = player:GetMouse()

local animation = Tool:WaitForChild('Animation')
local AnimTrack = hum:LoadAnimation(animation)

debounce = false

Tool.Equipped:connect(function()
Mouse.Button1Down:connect(function()
if debounce == false then
debounce = true
AnimTrack:Play()
wait(2)
debounce = false
end
end)
end)






Why doesn't this work?
Report Abuse
Camper0008 is not online. Camper0008
Joined: 07 Apr 2013
Total Posts: 2504
24 Aug 2017 08:01 AM
If you want to load a animation on the server, load it under the humanoid.
If you want to load a animation on the client, load it under the animator. (under humanoid)


╴ “I seem to get mentioned alot in videogames.. i wonder why..”
Report Abuse
Robloxinaterr is not online. Robloxinaterr
Joined: 26 Jul 2014
Total Posts: 14824
24 Aug 2017 08:19 AM
Just make a startcharacter and change the anaimatoosn from tetr.
Report Abuse
DanPai is online. DanPai
Joined: 03 Jun 2016
Total Posts: 355
24 Aug 2017 08:30 AM
never mind, I figured it out. I published the animation under my account when it should've been under the group. rip me
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