You can write your topic however you want, but you need to answer these questions:
I want to make a script that checks a part if it is anchored or not and if it is unanchored a clone of the object gets put in the workspace. Keep it simple and clear!
There is no error message in the output but it doesn’t put the clone in the workspace. Include screenshots / videos if possible!
I have tried looking for solutions on the internet. Did you look for solutions on the Developer Hub?
Ah, the script actually checks if the part is even anchored at first. This script should work.
script.Parent.Changed:Connect(function()
if not script.Parent.Anchored then
local clone = script.Parent:Clone()
clone.Parent = workspace
else return;
end
end)
Put this script inside of the part that needs to be checked:
script.Parent:GetPropertyChangedSignal("Anchored"):Connect(function()
if script.Parent.Anchored == false then
local Clone = script.Parent
Clone.Parent = workspace
end
end)