Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Parts wont appears in the workspace, Whats wrong??

Asked by 5 years ago
Edited 5 years ago

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

Log in to vote
0
Answered by
pwx 1581 Moderation Voter
5 years ago

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.

0
^ Also don't forget to change the others to Parent, also. pwx 1581 — 5y
0
Thats still not working: Nermis2017 -4 — 5y
0
What is Torch, is torch a MeshPart, BasePart, Model, which one? pwx 1581 — 5y
0
torch is a touching part, which in the model and model is in the folder. Nermis2017 -4 — 5y
View all comments (2 more)
0
Can you show me the current code you have now? pwx 1581 — 5y
0
here Nermis2017 -4 — 5y
Ad
Log in to vote
0
Answered by 5 years ago
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)
0
Assuming the parts are in the correct space in workspace whilst it was being put in lighting, it should work. pwx 1581 — 5y
0
Nope didnt worked Nermis2017 -4 — 5y

Answer this question