Humanoid = humanoid.Health - Power.Value -Damage taked to the NPCĮffect. Game.Players:GetPlayerFromCharacter(hit.Parent) -Gets the player Local animationtrack = humanoid.Animator:LoadAnimation(animation)Īnimationtrack:Play() -Makes NPC have a hit effect Once Roblox Studio is opened, select a place you would like to work on (if you don’t have one it’s ok, simply click on new. These custom scripts can be invoked on form load, on column values change. First, open up Roblox Studio (or download it if you don’t have it). nbsp Roblox Jailbreak Hack Kill aura Money Hack NoClip. Before I start, here are some things you need to do. Local humanoid = hit.Parent:FindFirstChild("Humanoid") Today, we will be learning how to make a simple stats system using one script. Sound:play() -Sound of the swords hitting the NPC If hit.Parent:FindFirstChild('HealthSpot') then -Checks for HealthSpot in NPC This is in a part of a part of the sword (Normal Script) function onTouch(hit) This script is in the Sword (Normal Script) I know the problem is getting the player leaderstats, but I don’t know how to do it correctly. I am trying to make a system like Sword Fighting Simulator where you swing a sword and the NPC takes damage from how much Power the player that hit the NPC has.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |