How do i make a script disable for a certain team?
Asked by
4 years ago Edited 4 years ago
Trying to make 2 scripts disable when your on a certain team and for the other team the script still works
the scripts I want to disable:
1 | repeat wait() until game.Players.LocalPlayer.Character |
2 | local hum = game.Players.LocalPlayer.Character:WaitForChild( "Humanoid" ) |
4 | hum.Jumping:Connect( function () |
other script:
1 | local player = game.Players.LocalPlayer |
3 | local StarterGui = player.PlayerGui |
4 | local UserInputService = game:GetService( "UserInputService" ) |
5 | UserInputService.JumpRequest:Connect( function () |
6 | StarterGui.ScreenGui.Frame.Visible = true |
8 | StarterGui.ScreenGui.Frame.Visible = false |
so basically i want it so when your on the "died" team these scripts are disabled for only that team. and the people in the "alive" team still have the script working this is way too complicated for me, a beginner.
these scripts are all in starter player scripts as local scripts