When a player joins, a folder with a string value containing a Player's Stand Name is made, there is a tool that sends a remote event to ServerScriptService which should (in theory) change the string value so the player can obtain a stand. It says that it changed it, but it did not. Any help with this?
local repStorage = game:GetService("ReplicatedStorage")
local event = repStorage:FindFirstChild("StandArrow")
event.OnServerEvent:Connect(function(char, standGiven)
local player = char.Name
local stand = workspace:FindFirstChild(player.." StandChecker")
if stand then
print("found stand B)")
local standValue = stand.Stand.Value
if standValue then
print("B/ stand to give is "..standGiven)
print("B/ current Stand is "..standValue)
standValue = standGiven
if standValue == standGiven then
print("Given correct stand.")
else
print("Couldn't give stand?")
end
else
print("wheres the stand value >B(")
end
else
print("ayo no stand >B(")
end
end)
