#not working claim uhhhhhh
16 messages · Page 1 of 1 (latest)
if I make a house vip
then claim another house
and my previous house reset
resetted house not claim working
thats house change to vip code
thats another code
thats module code
I didnt make the module and another code
my friend asked me to help
I couldnt make it need hel
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local standname = char:WaitForChild("standname")
print("standname worksss")
while true do
wait(0.1)
if standname.Value ~= "aaa" then
local standd = workspace:WaitForChild("Stands"):WaitForChild(standname.Value)
standd:WaitForChild("Base").EditPrompt.Triggered:Connect(function(plrTriggered)
if plrTriggered.Name == standd.ClaimedUserName.Value then
game.ReplicatedStorage.Events.EditStand:FireClient(plrTriggered)
end
end)
game.ReplicatedStorage.Events.EditStand.OnServerEvent:Connect(function(plr,text)
local filtered = game:GetService("TextService"):FilterStringAsync(text,plr.UserId):GetNonChatStringForBroadcastAsync()
for _, standd in pairs(game.Workspace.Stands:GetChildren()) do
if standd.Claimed.Value == true and standd.ClaimedUserName.Value == plr.Name then
standd.MessagePart.SurfaceGui.UserMessage.Text = filtered
end
end
end)
end
end
end)
end)
that was another code for editting