I am still really starting to get scripting. It is like a gun thing with a specific position but I am scared that I might loose the script like what happened last time, I did many attempts but I dont know what to script, as I am very new. I'm sorry if I am asking too much. But this is where I am so far from this "animation script".

local prev 
local parts = script.Parent:GetChildren() 

for i = 1,#parts do 
	if (parts[i].className == "Part") or (parts[i].className == "WedgePart") or (parts[i].className == "Seat") or (parts[i].className == "VehicleSeat") or (parts[i].className == "CornerWedgePart") or (parts[i].className == "WedgePart") or (parts[i].className == "UnionOperation") then 
		if (prev ~= nil)then 
			local weld = Instance.new("Weld") 
			weld.Part0 = prev 
			weld.Part1 = parts[i] 
			weld.C0 = prev.CFrame:inverse() 
			weld.C1 = parts[i].CFrame:inverse() 
			weld.Parent = prev 
		end 
		prev = parts[i] 
	end 
end


2 comments

0

Just create an actual animation with the animation plugin by ROBLOX.

0

Oh.. okay? thanks.