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

Why isn't Motor6D working properly?

Asked by 10 years ago

It works fine with the first script but not the second script,why? The problem with the second script is that it won't move but the property changes. Please show how you managed to fix it.

First Script:

------------Vairbles-------------
local Group = Instance.new("Model",game.Workspace)
        script.Parent = Group
---------------------------------
local Part = Instance.new("Part",game.Workspace)
    Part.Position = Vector3.new(-12, 0.59, -24)
    Part.Parent = Group
---------------------------------
local Part1 = Instance.new("Part",game.Workspace)
    Part1.Name = "Part1"
    Part1.Parent = Group
-------------------------------------
local Motor = Instance.new("Motor6D",Part1)
--Changing Motor6D's Part Property---
        Motor.Part0 = Part
    Motor.Part1 = Part1
-------------------------------------
    wait(1)
    print("Now!")
    Motor.DesiredAngle = -1
    Motor.MaxVelocity = .1

Second Script:

------------Vairbles-------------
local Part = script.Parent.Part
local Part1 = script.Parent.Part1
local Motor = Instance.new("Motor6D",Part1)
--Changing Motor6D's Part Property---
        Motor.Part0 = Part
    Motor.Part1 = Part1
-------------------------------------
    wait(1)
    print("Now!")
    Motor.DesiredAngle = -1
    Motor.MaxVelocity = .1

The Second Script is set up like this: http://tinyurl.com/kmjcn6c

Answer this question