I need help with a script?
Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
I am making an icecream place with a froyo bar and I made the machines. The machines are doing nothing and the code looks correct here is the script.
01 | script.Parent.Touched:connect( function (z) |
02 | if z.Parent.Name = = "Empty Bowl" then |
03 | z.Parent.BloxyColaScript.Disabled = false |
04 | z.Parent.Flavor.BrickColor = script.Color.Value |
05 | z.Parent.Handle.Transparency = 1 |
06 | z.Parent.Union.Transparency = 1 |
07 | z.Parent.Part 1. Transparency = 1 |
08 | z.Parent.Flavor.Transparency = 1 |
09 | z.Parent.Wedge 1. Transparency = 1 |
10 | z.Parent.Wedge.Transparency = 1 |
11 | z.Parent.Spoon.Transparency = 1 |
12 | z.Parent.BloxyColaScript.Disabled = true |
14 | script.Parent.Parent.Bowl.Union.Transparency = 1 |
15 | script.Parent.Parent.Bowl.Part.Transparency = 1 |
16 | script.Parent.Parent.Bowl.Wedge 1. Transparency = 1 |
17 | script.Parent.Parent.Bowl.Wedge.Transparency = 1 |
18 | script.Parent.Parent.MugD.Transparency = 0 |
19 | script.Parent.Parent.Bowl.Union 1. Transparency = 0 |
20 | script.Parent.Parent.Bowl.Union.Transparency = 0 |
21 | script.Parent.Parent.Bowl.Part.Transparency = 0 |
22 | script.Parent.Parent.Bowl.Wedge 1. Transparency = 0 |
23 | script.Parent.Parent.Bowl.Wedge.Transparency = 0 |
25 | script.Parent.Smoke.Enabled = true |
27 | script.Parent.Smoke.Enabled = false |
28 | script.Parent.Parent.MugD.Transparency = 1 |
29 | script.Parent.Parent.Bowl.Union 1. Transparency = 1 |
30 | script.Parent.Parent.Bowl.Union.Transparency = 1 |
31 | script.Parent.Parent.Bowl.Part.Transparency = 1 |
32 | script.Parent.Parent.Bowl.Wedge 1. Transparency = 1 |
33 | script.Parent.Parent.Bowl.Wedge.Transparency = 1 |
35 | z.Parent.BloxyColaScript.Disabled = false |
36 | z.Parent.Handle.Transparency = 0 |
37 | z.Parent.Union.Transparency = 0 |
38 | z.Parent.Part 1. Transparency = 0 |
39 | z.Parent.Flavor.Transparency = 0 |
40 | z.Parent.Wedge 1. Transparency = 0 |
41 | z.Parent.Wedge.Transparency = 0 |
42 | z.Parent.Spoon.Transparency = 0 |
44 | z.Parent.Name = script.Parent.X.Value |
I have all the values and the bowl is named Empty Bowl.
Please help by replying.