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

Creating motors break tools?

Asked by
Astilev 30
6 years ago

I'm trying to create motors in order to lerp welds and create animations. However, when doing this, I previously used keydown in order to have moves work, but have recently decided to try out tools. Unfortunately, I noticed that tools wouldn't even activate once the motors were created, even if they were done in a separate thread or even in a completely different script.

local WLS = Instance.new("Motor", T)
WLS.C0 = CFrame.new(-1.5, 0.5, 0)
WLS.C1 = CFrame.new(0, 0.5, 0)
WLS.Part0 = T
WLS.Part1 = LA
local WRS = Instance.new("Motor", T)
WRS.Part0 = T
WRS.Part1 = RA
WRS.C0 = CFrame.new(1.5, 0.5, 0)
WRS.C1 = CFrame.new(0, 0.5, 0)
local WLH = LH
local WRH = RH
local LSC0 = WLS.C0
local RSC0 = WRS.C0
local LHC0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
local LHC1 = CFrame.new(-0.5, 1 ,0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
local RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
local RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
local WRJ = RJ
local RJC0 = WRJ.C0
local RJC1 = WRJ.C1
local NC0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)

is what I have to create the motors

If someone could solve this, I would really appreciate it! (P.S. I printed logs to see if the tool even activated, to no avail)

0
The second argument in Instance.new is depricated(since it could cause a lot of bugs), instead do it like this(THIS IS AN EXAMPLE) local part = Instance.new("Part") part.Parent = game.Workspace saSlol2436 716 — 6y
0
Thanks for the advice, but it didn't fix the problem :( Astilev 30 — 6y

Answer this question