So bacicaly, this script is suppost to find specific blocks called "Force" and give them a BodyFoce. The Body force is suppost to push the block one way and then wait 2 seconds and then push the other way and repeat.
local Model = script.Parent
while --Repeating script?
for _,v in pairs(Model:GetChilren()) do
if v.Name == "Force" then --Finding all parts called Force
local Movement = Instance.new ("BodyForce") --Adding BodyForce
Movement.Force = (100,0,0) --Pushing the block one way
wait (2) --waiting 2 seconds
Movement.Force = (-100,0,0)--Pushing the block another way
wait (2)
end
end
This script is going to be used to add force to the end points of a cape to pull the majority of the cape in a direction to simulate wind. I'm trying to add a looping script to points in the cape instead of trying to "animate" it with slightly changing the points position every second. The Verlet Integration method is to complex for me to understand. I'm really just a builder who knows 1% of scripting knowledge.

1 comment
Thanks alot!