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

I need help with a script?

Asked by 9 years ago

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.

script.Parent.Touched:connect(function(z)
    if z.Parent.Name == "Empty Bowl" then   
        z.Parent.BloxyColaScript.Disabled = false
        z.Parent.Flavor.BrickColor = script.Color.Value
        z.Parent.Handle.Transparency = 1
        z.Parent.Union.Transparency = 1
        z.Parent.Part1.Transparency = 1
        z.Parent.Flavor.Transparency = 1
        z.Parent.Wedge1.Transparency = 1
        z.Parent.Wedge.Transparency = 1
        z.Parent.Spoon.Transparency = 1
        z.Parent.BloxyColaScript.Disabled = true
        z.Parent.Part.Decal.Texture = "http://www.roblox.com/asset/?id=0"
        script.Parent.Parent.Bowl.Union.Transparency = 1
        script.Parent.Parent.Bowl.Part.Transparency = 1
        script.Parent.Parent.Bowl.Wedge1.Transparency = 1
        script.Parent.Parent.Bowl.Wedge.Transparency = 1
        script.Parent.Parent.MugD.Transparency = 0
        script.Parent.Parent.Bowl.Union1.Transparency = 0
        script.Parent.Parent.Bowl.Union.Transparency = 0
        script.Parent.Parent.Bowl.Part.Transparency = 0
        script.Parent.Parent.Bowl.Wedge1.Transparency = 0
        script.Parent.Parent.Bowl.Wedge.Transparency = 0
        script.Parent.Parent.Bowl.Part1.Decal.Texture = "http://www.roblox.com/asset/?id=195294887"
        script.Parent.Smoke.Enabled = true
        wait(3)
        script.Parent.Smoke.Enabled = false
        script.Parent.Parent.MugD.Transparency = 1
        script.Parent.Parent.Bowl.Union1.Transparency = 1
        script.Parent.Parent.Bowl.Union.Transparency = 1
        script.Parent.Parent.Bowl.Part.Transparency = 1
        script.Parent.Parent.Bowl.Wedge1.Transparency = 1
        script.Parent.Parent.Bowl.Wedge.Transparency = 1
        script.Parent.Parent.Bowl.Part1.Decal.Texture = "http://www.roblox.com/asset/?id=0"
        z.Parent.BloxyColaScript.Disabled = false
        z.Parent.Handle.Transparency = 0
        z.Parent.Union.Transparency = 0
        z.Parent.Part1.Transparency = 0
        z.Parent.Flavor.Transparency = 0
        z.Parent.Wedge1.Transparency = 0
        z.Parent.Wedge.Transparency = 0
        z.Parent.Spoon.Transparency = 0
        z.Parent.Part.Decal.Texture = "http://www.roblox.com/asset/?id=195294887"
        z.Parent.Name = script.Parent.X.Value
    end
end)

I have all the values and the bowl is named Empty Bowl.

Please help by replying.

1
1 unwritten rule in scripting helpers. Not many people would read the whole script. EzraNehemiah_TF2 3552 — 9y
0
Are there any errors? Have you done any debugging? What works? What prints? BlueTaslem 18071 — 9y

Answer this question