You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I want to make when a button clicked it will check if the button name is equal to the house name that parented inside a folder in replicatedstorage. If it’s equal then the house will clone -
What is the issue? Include screenshots / videos if possible!
Cloning not working. The script only works until at line 11
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried to use value but nothing happens
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
this is my code:
local motherframe = script.Parent
local house = game.ReplicatedStorage.House:GetChildren()
script.Parent.Activated:Connect(function()
print("HAHAHAHHA")
local player = game:GetService("Players").LocalPlayer
for i , houses in pairs(house)do
print("hehehehehe")
if houses.Name == motherframe:WaitForChild("Name").Value then
print("hohohohoho")
local clone = houses:Clone()
clone.Parent = game.Workspace:WaitForChild(player.Name.."Stuff")
for i , v in pairs(game.Workspace.PromptInterract.HouseOwning:GetChildren())do
local value = v:WaitForChild("PlayerPlcae")
if value == player.Name then
print("haihiahiah")
clone:SetPrimaryPartCFrame(v:WaitForChild("HouseSpawnPart").CFrame + Vector3.new(0,8,0) , v.CFrame.LookVector)
print("huhuhhuhuh")
end
end
end
end
end)
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.