HI THANK YOU i have a little problem eatch player can has a vote and they can choose it forms Gui and when they press the buttons an local script is gonna be firing to a script and in that script we store the data in their character and then when they press the button again it delets the old value and replace it with a new here is the script
voteevent.OnServerEvent:Connect(function(plrc,num)
local votevalue=Instance.new("IntValue")
votevalue.Name="votevalue"
votevalue.Value=num
local playervot=plrc.Character or plrc.CharacterAdded:Wait()
if allow==true and playervot.votevalue then
print("WE DESTROYES"..playervot.votevalue.Value)
playervot.votevalue:Destroy()
end
votevalue.Parent=playervot
print(playervot.votevalue.Value)
allow=true
end)
and this works fine in single player but when i play it in multiplayer it gives me the error votevalue is not part of model Thank You if u have a Solution please Ansewer.

1 comment
it helped