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 
joopi132 is not online. joopi132
Joined: 13 Aug 2011
Total Posts: 21
21 Oct 2017 02:42 PM
Works in studio doesnt work ingame (localscript)
local CanAttack = true





script.Parent.Activated:connect(function()

local attack = script.Parent.Parent.Humanoid:LoadAnimation(script.Attack)



if CanAttack == true then

attack:Play()

CanAttack = false

wait(1)

attack:Stop()

CanAttack = true

script.Parent.CanDamage.Value = true

end

end)
Report Abuse
NexanianStudios is online. NexanianStudios
Joined: 16 Jul 2016
Total Posts: 1109
21 Oct 2017 02:43 PM
Where is it parented?
Report Abuse
Extra_Syrup is not online. Extra_Syrup
Joined: 09 Sep 2017
Total Posts: 5
21 Oct 2017 02:47 PM
First, where do you have this localscript in your project? Under StarterPlayerScripts or elsewhere?
Report Abuse
joopi132 is not online. joopi132
Joined: 13 Aug 2011
Total Posts: 21
21 Oct 2017 02:58 PM
Everything works fine its just it doesnt do damage anymore...
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