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: ################# ##################

Previous Thread :: Next Thread 
DanPai is online. DanPai
Joined: 03 Jun 2016
Total Posts: 355
24 Aug 2017 06:46 AM
Now that I have your attention, can you 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 won't this work?

Also, I have tried making the connects into Connects
Report Abuse
DanPai is online. DanPai
Joined: 03 Jun 2016
Total Posts: 355
24 Aug 2017 06:49 AM
heckin tags
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