Model doesn't have anchored property. You'll need to use for loop or primary part wielding
I also noticed in line 3, game.Workspace.Radio.MouseButtonClick1:Connect(function() is wrong. You need to add .ClickDetector after the Radio
Next one is "MouseButtonClick1" is not an event of ClickDetector. The event is called "MouseClick" ( left click ) or "RightMouseClick" ( right click )
I'll show you for loop usage to anchor a model. You can also learn how to anchor a model using primary part wielding but it's harder to explain.
Basic Code:
local workspace = game.Workspace
local model = workspace.Model
workspace.Radio.ClickDetector.MouseClick:Connect(function()
for _, object in pairs(model) do
if object:IsA("Part") then
object.Anchored = true
end
end
end
1 comment
Thank You Very Much Both of you guys helped me alot! and now I have a understanding of how you have to use a for loop to anchor every part in the model