Ok so this is a edit of the post i made its about a character picker script i want to make but i dont really know how to do that i have 5 characters i need to make a script that when you click a pick button shown down turn is into taken for everyone else after that noone else cant select the character and it gives the character to you (changes ur StarterCharacter) if you can help i thanks in advance here are the scripts and the other parts also hope its more clear now:
script service script
local AlanPicked = ReplicatedStorage:WaitForChild("AlanPicked")
local Charchanged = ReplicatedStorage:WaitForChild("CharacterPicked")
local alanv = script.Alan
local player = game.Players.PlayerAdded
local Alantakentext = player.PlayerGui.CharacterPicker.ChoseCharacter.AlanPick.AlanTaken
AlanPicked.OnServerEvent:Connect(function(player, Alantakentext)
Alantakentext.Visible = true
alanv.Value = true
end)
local button script
```local ReplicatedStorage = game:GetService("ReplicatedStorage")
local AlanPicked = ReplicatedStorage:WaitForChild("AlanPicked")
local ReplicatedFirst = game:GetService("ReplicatedFirst")
local StarterPlayer = game:GetService("StarterPlayer")
local Charchanged = game
local Alanatakentext = script.Parent.Parent.AlanPick.AlanTaken
local plr = game.Players.LocalPlayer
local alan = ReplicatedFirst.Humans.Alan.StarterCharacter
script.Parent.MouseButton1Click:Connect(function()
if Alanatakentext.Visible == true then
print("taken")
else
AlanPicked:FireServer(Alanatakentext)
script.Parent.Parent.Visible = false
end
end)
[Uploading: image.png...]()