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

If you want the y-axis or other to be anything, what should you do?

Asked by 3 years ago
Edited 3 years ago
local PartColor = game.Workspace.MixingMachine.RedPipe.ColorEnergy
local Part = game.Workspace.MixingMachine.RedPipe
local button = script.Parent
local posi2 = 0.5
local NumOperate = 1

button.MouseButton1Up:Connect(function()
    if NumOperate == 1 then
        while true do
            if posi2 > (bla,-14.412,bla) then
                PartColor.CFrame = PartColor.CFrame * CFrame.new(-posi2,0,0)
            end
        end
    end
    if NumOperate == 2 then
        while true do
            if posi2 > (bla,11.588,bla) then
                PartColor.CFrame = PartColor.CFrame * CFrame.new(posi2,0,0)
            end
        end
    end
end)

I don't know how to do that. can you help me? if you can.

it like (can be anything,1.5, can be anything)

0
What does that even mean? Explain your question much more. And post any ideas you have on how to do it. Not a request site Spjureeedd 385 — 3y
0
ok Trorapantest1 13 — 3y
0
read again and if you dont understand i dont know how to explane it hard to explane Trorapantest1 13 — 3y
0
I think I know what you're trying to do. Are you putting this in an if statement? LeedleLeeRocket 1257 — 3y
0
yes Trorapantest1 13 — 3y

Answer this question