Hello I’ve been trying to change a model’s parent when interacted with a gui button and it just wouldn’t work can anyone help me, Thank you!
Here is the code i tried:
local Buton = game.StarterGui.SunucuGui.Frame.Oldur
Buton.MouseButton1Click:Connect(function(plr)
local Model = script.Parent
wait(0.1)
Model.Parent = Workspace
wait(3)
Model.Parent = ReplicatedStorage
script.Enabled = false
wait(0.1)
script.Enabled = true
end)