#what is wrong here??
1 messages · Page 1 of 1 (latest)
its getting the parent's parent then looking for motor
just get the parent then find motor
@queen perch
ok ima try
let me know if it works bro
show the script now please
one sec
wait are you even sure you can spin motor6D's?
task.wait(0.1)
local motor = script.Parent:WaitForChild("Motor")
local song = script.Parent.Parent:WaitForChild("Sound")
repeat task.wait() until song.IsLoaded
local ts = game:GetService("TweenService")
while true do
local loudness = song.PlaybackLoudness
local speed = loudness / 2000
local newC0 = motor.C0 * CFrame.fromEulerAnglesXYZ(speed/12, speed, speed/32)
task.wait()
ts:Create(motor, TweenInfo.new(0.1, Enum.EasingStyle.Linear), {C0 = newC0}):Play()
task.wait()
end
it gave me this "task.wait(0.1)
local motor = script.Parent:WaitForChild("Motor")
local song = script.Parent.Parent:WaitForChild("Sound")
repeat task.wait() until song.IsLoaded
while true do
if song.IsPlaying then
local loudness = song.PlaybackLoudness
local speed = loudness / 2000
motor.C0 = motor.C0 * CFrame.fromEulerAnglesXYZ(speed / 12, speed, speed / 32)
end
task.wait(0.1)
end
"
but honestly it prob dont work 😭
maybe ill make a baseplate and try help
ik ik ik ik ik ik ik
** You are now Level 2! **
So the script isn't getting the roots motor?
any errors
It's playing already?
wait
did you want the rig to spin or something else?
Because changing the motor6d spins the rig 😭
The motor6d is like the controller of the rig
Ah I see
I don't really see an issue with this code 😭
print at the bottom inside the loop
Nah prob not
You don't need :WaitForChild on the server unless you know something will NOT exist btw
Print the motor and the sound, and in the output it will be clickable
Click on it and see if it redirects you to the correct instance
isnt waitforchild to wait until something is loaded?
you did???
If your rig is anchored your rig won't change from the motor
ok
See if that works
didnt work
AaaadsADSdaS
IT WAS BECAUSE IT WAS NAHCORED
ANCHORED
the part was anchored
lol
@cobalt root
yeah
** You are now Level 3! **
it works