Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Special Area Queues For Games Help?

I want to make a game that has a uncommon game feature, where unless you are on the queue pad, you will not be teleported to the game round. This will help prevent afk people from getting points every round.

2 comments

0

that's a common game feature. you can see it in almost any round games. from Lab Experiments to Prison Royale (ik that doesnt help at all XD)

0

This is NOT a request site! Please look at the community guidelines if you haven't already done so. With that said, you must conduct your own research and compile a script (it is okay to make errors as you can post the script here and we'll correct you).

1 answer

I have a primitive idea that may work, you could probably set a boolean value to the player using Touch and TouchEnded. the code may be something like this (this code goes on the pad):

game.Players.PlayerAdded:Connect(function(player)
	local Value = Instance.new("BoolValue")
	Value.Parent = player
	Value.Value = false
        Value.Name = "Playing"
end)

script.Parent.Touched:Connect(function(Hit)
        if Hit.Parent:FindFirstChild(Humanoid) then
                local PlayerCharacter = Hit.Parent
                local Player = game.Players:GetPlayerFromCharacter(PlayerCharacter)
                Player:FindFirstChild(Playing).Value = true
        end
end)

script.Parent.TouchEnded:Connect(function(Hit)
        if Hit.Parent:FindFirstChild(Humanoid) then
                local PlayerCharacter = Hit.Parent
                local Player = game.Players:GetPlayerFromCharacter(PlayerCharacter)
                Player:FindFirstChild(Playing).Value = false
        end
end)

This code is pretty raw and untested and is most likely to not work, but you know, i had to give it a try

P.S.: Next time, search for tutorials. SH is not supposed to do all the work for you

1 comment

0

You shouldn't be spoon feeding code.

This discussion is preserved as it was. New answers, comments, and votes are closed.