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: How to make swords parry ? + Other sword-related questions

Previous Thread :: Next Thread 
cripple_d is not online. cripple_d
Joined: 05 May 2016
Total Posts: 536
20 Nov 2016 02:55 PM
First, how do I make swords parry ? As in, it uses original animations, but when the two swords hit eachother it cancels it out and maybe pushes both of them back a little bit ?

Also, how could I make it so that there is no health regen ( as I think health regens normally without scripts ) ?
And how should I make it to where your walkspeed is lower the lower your health is ?


Lastly, what script should I use to make it to where when you 'die' your character just falls ? Like you would have to press E to finish him off or you could let him live ?
I remember seeing most of this in a samurai game once that isn't popular anymore and I really want to use these ideas in my own game, but I have zero idea how to script and i'm completely new to this
Report Abuse
newcoolman2 is not online. newcoolman2
Joined: 01 Apr 2010
Total Posts: 2637
20 Nov 2016 03:15 PM
Touched event
when one sword collides with another sword do this..



remove the health script in the character model and insert your own?



local hum=game.Players.LocalPlayer.Character.Humanoid
local maxWalkSpeed=hum.WalkSpeed
local maxHealth=hum.MaxHealth
hum.HealthChanged:connect(function(health)
hum.WalkSpeed=(health/maxHealth)*maxWalkSpeed
end)


fourth one I don't really understand?


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