So basically what im saying is that when the player (player1) says !check player2 and player2 has a value of 1, and the text on player1's screen says "Player2 has 1 value" or something like that.
Im trying to make it so the value on player2 shows up on player1's screen as the text on player1's screen, like as i said "Player2 has 1 value
local StandIDs = {
[1] = "Standless";
[2] = "StarPlatinum";
[3] = "StarPlatinumStoneOcean";
[4] = "TheWorld";
}
game:GetService("ReplicatedStorage").CheckAndGiveStand.OnServerEvent:Connect(function(player, parent)
local chr = player.Character
local data = player:WaitForChild("Data")
local standdata = data:WaitForChild("Stand")
for ind, val in pairs(StandIDs) do
if standdata.Value == ind then
print(val)
local clone = game.Lighting:FindFirstChild(val):Clone()
clone.Parent = parent
end
end
end)
this is code i use to check the players "stand" and their value, it also prints their name and stand.

1 comment
What is the problem you are having?