![]() ![]() Local Distance = Player:DistanceFromCharacter(Base. Player.CharacterAdded:Connect(function(Character)įor i,v in pairs(game.Players:GetPlayers()) do because I was predicting that I would come across with a probelm so i tested it with a part first. Local Base = workspace.Part-btw, I wasn't testing it with the actual door base yet, You can find it like this: local plr local chr plr.Character. So, like i said I wanted to check so far if everything was in tact so I tested to see if the checking part was correctly (the part where it would check if the player is close to the door). Cowwy RobloxStudio RobloxAPIBeginnerIn this video I will show the differences between a Player, a Character and a Humanoid in Roblox studio. 1Click:Connect (function (player) Local char player:WaitForChild ('character') Local humanoid chat.humanoid Humanoid.Health humanoid.Health - 50 End) This script will halfen and then on second click kill the player. So I wanted to make a advance door where it would check if a player is in within a said distance from a part, if the player was it would make two parts: One part in the front and one part in the back of the door, and when they are touched It’ll tween the door to a 100 degree angle. I was in the works of making a script, so I was doing some checks every once in a while to make sure the script was working.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |