Rock Tweening is not working

The REVrocks variable is a model called “REVRocks” that has 5 MeshParts in it, all named “Rock”. I want them to have a tweening animation that makes them go down 40 studs in a bounce animation, so that they collapse and block an exit. When the code is activated, nothing happens and nothing shows up in the Output.

local rockSound = script.Parent.RSound

local function rockTweening()
	local REVrocks = Lib.Map.REVrocks:GetChildren()
	for i,v in pairs(REVrocks) do
		rockSound:Play()
		wait(0.35)
		game:GetService('TweenService'):Create(
		v,TweenInfo.new(5,Enum.EasingStyle.Bounce,Enum.EasingDirection.Out),
		{CFrame = v.CFrame * CFrame.new(0,-40,0)}):Play()
	end
end

wait(25)
rockTweening()
Enum.EasingDirection.Bounce

this could be your issue. Easing direction can be in, out, or inout, but you have it listed as Bounce.

Another thing, for future reference, organization is important. I would define your info or goal (or both) separately as variables then plug them into the tween. If this is not an issue, don’t worry about it. If your script does not show anything in the output, your script might not be running at all. try printing something in the script when it runs and see if it works.

Shound look at EasingDirection vs EasingStyle. You have both of them set as bounce, and just like how @9100ryan said, you can only set it as in, out, inout.

I did that but it still doesn’t work

im guessing this is an eventscript for an fe2 map
do you know what part of the script stops working, or does the whole script loses its battery?

for i,v in pairs(Lib.Map.REVrocks:GetChildren()) do

yep lol

It’s actually EventString

Wait a minute that might be why it’s not working

probably
because last time i saw that fe2cm deprecated the eventstring and people will need to paste the whole process from the eventstring back into the eventscript
havent played fe2 for over 1 year

OKAY it works now lol

1 Like