AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Wait for character roblox1/29/2024 Local isScientist = player.Team = game.Teams. the local players character or from BasePart:SetNetworkOwner(), this function also loads the animation for the server as well. Local player = game.Players:GetPlayerFromCharacter(hit.parent) LoadAnimation will load the given Animation onto an Animator, returning a playable AnimationTrack.When called on Animators within models that the client has network ownership of, ie. check if character is not dead and a scientist everything after this point happens once the player was not touching before, so flip the debounce flag escape if this player is already touching the floor Local hum = char:FindFirstChild("Humanoid") - Humanoid check that the thing that hit is a player I would recommend debouncing the connection so that only one loop happens per player : - create a map of players touching the floor What is probably happening is that this event is firing multiple times, and you have a bunch of these repeat-while loops all running at the same time, causing the player's health to drop very quickly. If the player is walking across the floor, it will fire every time the player's foot hits it. You have this callback connected to the Touched event, and the event will fire every time a player touches the part.
0 Comments
Read More
Leave a Reply. |