-- ModuleScript PromptHandler (via bytefall decompiler) -- Decompiled using ByteFall -- discord.gg/pHTnqmmWzk local t1: {[any]: any} = {} local players: Players = game:GetService("Players") game.ReplicatedStorage:WaitForChild("RobPlayerRem") local function CanRob(player) return player.Team ~= game.Teams.Police and players.LocalPlayer.Team ~= game.Teams.Police and players.LocalPlayer.Team ~= game.Teams.Prisoner end local function LocalIsPolice() return players.LocalPlayer.Team == game.Teams.Police and players.LocalPlayer:GetAttribute("GamepassPolice") ~= true end local function ApplyPrompt(p2, player, p4) if p4 then if players.LocalPlayer.Team == game.Teams.Police and players.LocalPlayer:GetAttribute("GamepassPolice") ~= true and player.Team ~= game.Teams.Police then p2.ActionText = "Search" p2.Enabled = true return end end if p4 then if player.Team ~= game.Teams.Police and players.LocalPlayer.Team ~= game.Teams.Police and players.LocalPlayer.Team ~= game.Teams.Prisoner then p2.ActionText = "ROB" p2.Enabled = true return end p2.Enabled = false return end p2.Enabled = false end local module: {[any]: any} = { HandsOut = false, SetupPlayer = function(_, player) if player == players.LocalPlayer then return end t1[player] = {} local function CharacterAdded(p7) local humanoidRootPart = p7:WaitForChild("HumanoidRootPart") local proximityPrompt: ProximityPrompt = Instance.new("ProximityPrompt") local v27 = player.Name proximityPrompt.RequiresLineOfSight = false proximityPrompt.MaxActivationDistance = 8 proximityPrompt.ActionText = v27 proximityPrompt.ObjectText = "ROB" proximityPrompt.HoldDuration = 1 proximityPrompt.Enabled = false proximityPrompt.Parent = humanoidRootPart local v28 = player local u29 = player:GetAttribute("RobHandsUp") == true v27 = false if u29 then v27 = false if players.LocalPlayer.Team == game.Teams.Police then v27 = players.LocalPlayer:GetAttribute("GamepassPolice") ~= true end end if not u29 or not v27 or v28.Team == game.Teams.Police then local u30: boolean = false if u29 then u30 = false if v28.Team ~= game.Teams.Police then u30 = false if players.LocalPlayer.Team ~= game.Teams.Police then u30 = players.LocalPlayer.Team ~= game.Teams.Prisoner end end end if not u29 or not u30 then proximityPrompt.Enabled = false else proximityPrompt.ActionText = "ROB" proximityPrompt.Enabled = true end else proximityPrompt.ActionText = "Search" proximityPrompt.Enabled = true end for _, v in pairs(t1[player]) do v:Disconnect() end table.clear(t1[player]) t1[player] = {} u29 = t1[player] local humanoid = p7:WaitForChild("Humanoid") table.insert(u29, humanoid.AnimationPlayed:Connect(function() local u34: boolean = false if p7.Humanoid:GetState() ~= Enum.HumanoidStateType.Physics then local v35, v36 = p7.Humanoid:GetPlayingAnimationTracks() for iterKey, iterValue in next, v35, v36 do if iterValue.Animation.AnimationId == "rbxassetid://108598094217235" then u34 = true break end end end local v39: ProximityPrompt = proximityPrompt local v40 = player if u34 then if players.LocalPlayer.Team == game.Teams.Police and players.LocalPlayer:GetAttribute("GamepassPolice") ~= true and v40.Team ~= game.Teams.Police then v39.ActionText = "Search" v39.Enabled = true return end end if u34 then if v40.Team ~= game.Teams.Police and players.LocalPlayer.Team ~= game.Teams.Police and players.LocalPlayer.Team ~= game.Teams.Prisoner then v39.ActionText = "ROB" v39.Enabled = true return end v39.Enabled = false return end v39.Enabled = false end)) u29 = t1[player] v27 = player:GetAttributeChangedSignal("LastRagdoll") table.insert(u29, v27:Connect(function() proximityPrompt.Enabled = false local v41, v42 = p7.Humanoid:GetPlayingAnimationTracks() for iterKey, iterValue in next, v41, v42 do if iterValue.Animation.AnimationId == "rbxassetid://108598094217235" then iterValue:Stop() return end end end)) table.insert(t1[player], proximityPrompt.Triggered:Connect(function(p8: Player) if p8 ~= players.LocalPlayer then return end if players.LocalPlayer.Team ~= game.Teams.Police or players.LocalPlayer:GetAttribute("GamepassPolice") == true then local u46: boolean = false local v47, v48 = p7.Humanoid:GetPlayingAnimationTracks() for iterKey, iterValue in next, v47, v48 do if iterValue.Animation.AnimationId == "rbxassetid://108598094217235" then u46 = true break end end if p7.Humanoid:GetState() == Enum.HumanoidStateType.Physics then proximityPrompt.Enabled = false return end if not u46 then proximityPrompt.Enabled = false return end if (player.Character.HumanoidRootPart.Position - p8.Character.HumanoidRootPart.Position).Magnitude > 18 then return end game.ReplicatedStorage.OnRobbed:Fire(player) return end if player.Team == game.Teams.Police then return end if p7.Humanoid:GetState() == Enum.HumanoidStateType.Physics then return end local v51 = player.Character and player.Character:FindFirstChild("HumanoidRootPart") local v52 = p8.Character and p8.Character:FindFirstChild("HumanoidRootPart") if not v51 or not v52 then return end if (v51.Position - v52.Position).Magnitude > 18 then return end game.ReplicatedStorage.OnRobbed:Fire(player) end)) u29 = t1[player] v27 = p7:WaitForChild("Humanoid"):GetPropertyChangedSignal("Health") table.insert(u29, v27:Connect(function() if p7.Humanoid.Health > 24 then local v53: ProximityPrompt = proximityPrompt local v54 = player local u55: boolean = player:GetAttribute("RobHandsUp") == true if u55 then if players.LocalPlayer.Team == game.Teams.Police and players.LocalPlayer:GetAttribute("GamepassPolice") ~= true and v54.Team ~= game.Teams.Police then v53.ActionText = "Search" v53.Enabled = true return end end if u55 then if v54.Team ~= game.Teams.Police and players.LocalPlayer.Team ~= game.Teams.Police and players.LocalPlayer.Team ~= game.Teams.Prisoner then v53.ActionText = "ROB" v53.Enabled = true return end v53.Enabled = false return end v53.Enabled = false return end proximityPrompt.Enabled = false end)) p7:WaitForChild("Humanoid").Died:Once(function() proximityPrompt.Enabled = false end) u29 = t1[player] v27 = player:GetAttributeChangedSignal("RobHandsUp") table.insert(u29, v27:Connect(function() local v56: ProximityPrompt = proximityPrompt local v57 = player local u58: boolean = player:GetAttribute("RobHandsUp") == true if u58 then if players.LocalPlayer.Team == game.Teams.Police and players.LocalPlayer:GetAttribute("GamepassPolice") ~= true and v57.Team ~= game.Teams.Police then v56.ActionText = "Search" v56.Enabled = true return end end if u58 then if v57.Team ~= game.Teams.Police and players.LocalPlayer.Team ~= game.Teams.Police and players.LocalPlayer.Team ~= game.Teams.Prisoner then v56.ActionText = "ROB" v56.Enabled = true return end v56.Enabled = false return end v56.Enabled = false end)) end player.CharacterAdded:Connect(CharacterAdded) if player.Character then task.spawn(CharacterAdded, player.Character) end end, HandleLeave = function(_, p10) if t1[p10] then for _, v in pairs(t1[p10]) do v:Disconnect() end table.clear(t1[p10]) t1[p10] = nil end end } local v7, v8 = game.Players:GetPlayers() for iterKey, iterValue in next, v7, v8 do module:SetupPlayer(iterValue) end players.PlayerAdded:Connect(function(player: Player) module:SetupPlayer(player) end) players.PlayerRemoving:Connect(function(player: Player) module:HandleLeave(player) end) return module