Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Parts wont appears in the workspace, Whats wrong??

Parts not appears.

P1 = game.Lighting.Part1
P2 = game.Lighting.Part2
P3 = game.Lighting.Part3
P4 = game.Lighting.Part4

P11 = workspace.Part1
P22 = workspace.Part2
P33 = workspace.Part3
P44 = workspace.Part4

torch = script.Parent

torch.Touched:Connect(function()
	
	
	P1:Clone().Parent = workspace
	P2:Clone().Parent = workspace
	P3:Clone().Parent = workspace
	P4:Clone().Parent = workspace

	wait(0.1)
	
	
	P11.Anchored = false
	P22.Anchored = false
	P33.Anchored = false
	P44.Anchored = false
	
	P11.Transparency = 0
	P22.Transparency = 0
	P33.Transparency = 0
	P44.Transparency = 0
	
	wait(4)
	
	P11:Destroy()
	P22:Destroy()
	P33:Destroy()
	P44:Destroy()
	
end)

What wrong? pls help:c

2 answers

✓ Accepted answer

I believe your error is here:

P1:clone().P1 = workspace -- ?

I assuming you were trying to parent it to workspace, the way to do this is like this:

P1:Clone().Parent = workspace 

You can read up more about parenting here.

6 comments

0

^ Also don't forget to change the others to Parent, also.

0

Thats still not working:

0

What is Torch, is torch a MeshPart, BasePart, Model, which one?

0

torch is a touching part, which in the model and model is in the folder.

0

Can you show me the current code you have now?

0

here

P1 = game.Lighting.Part1
P2 = game.Lighting.Part2
P3 = game.Lighting.Part3
P4 = game.Lighting.Part4

P11 = workspace.House.Entering.Part1
P22 = workspace.House.Entering.Part2
P33 = workspace.House.Entering.Part3
P44 = workspace.House.Entering.Part4

torch = script.Parent

torch.Touched:Connect(function()
	
	
	P1:Clone().Parent = workspace.House.Entering
	P2:Clone().Parent = workspace.House.Entering
	P3:Clone().Parent = workspace.House.Entering
	P4:Clone().Parent = workspace.House.Entering

	wait(0.1)
	
	
	P11.Anchored = false
	P22.Anchored = false
	P33.Anchored = false
	P44.Anchored = false
	
	P11.Transparency = 0
	P22.Transparency = 0
	P33.Transparency = 0
	P44.Transparency = 0
	
	wait(4)
	
	P11:Destroy()
	P22:Destroy()
	P33:Destroy()
	P44:Destroy()
	
end)

2 comments

0

Assuming the parts are in the correct space in workspace whilst it was being put in lighting, it should work.

0

Nope didnt worked

This discussion is preserved as it was. New answers, comments, and votes are closed.