I was trying to make a cool game, and all of a sudden the game stops working and this comes up in the output " 15:52:05.267 - The Parent property of Felipe is locked, current parent: NULL, new parent Workspace" here's the script I used ~~~~~~~~~~~~~~~~~ local Ss = game:GetService("ServerStorage") local Rs = game:GetService("ReplicatedStorage") local ws = game:GetService("Workspace") local plrs = game:GetService("Players") local events = Ss:WaitForChild("Events") local availableEvents = events:GetChildren() local chosenEvent = availableEvents[math.random(1,#availableEvents)] local clonedEvent = chosenEvent:Clone()
script.Parent.MouseClick:Connect(function() clonedEvent.Parent = workspace script.Parent.Parent.Material = Enum.Material.SmoothPlastic script.Parent.Parent.Color = Color3.fromRGB(255,0,0) wait(10) clonedEvent:Destroy() script.Parent.Parent.Material = Enum.Material.Neon script.Parent.Parent.Color = Color3.fromRGB(0,255,0) end) ~~~~~~~~~~~~~~~~~