![]() GetClosestOpponentTo (Player, Opponents) You can substitute the characters that belong to players from the other team (s) to. ![]() Local Distance = Player:DistanceFromCharacter(Base. You can check the distances with magnitude and check teams with if like: Only issue is there are multiple teams in the game so I can’t put the specific team in parameters. 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, local Players game:GetService ('Players') local PLAYERNAME 'polarpanda16' local player Players:WaitForChild (PLAYERNAME) local part Instance.new ('Part') part.Parent workspace part.Name 'ReplicationFocusPart' part.Anchored true player.ReplicationFocus part Displaying a Humanoid's Health and Name local humanoid script. 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). 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 |