i should really put this in art support but oh well. i made a pick up plate animation earlier and its supposed to look like the animation from the video but the plate ends up inside my torso. not sure what’s going on tbh w u. i appreciate any help ty!
module script:
function startGameModule.CreateM6D()
game.Players.PlayerAdded:Connect(function(p)
p.CharacterAppearanceLoaded:Connect(function(c)
if c:FindFirstChild("plateM6D") then return end
M6D = Instance.new("Motor6D", c)
M6D.Name = "plateM6D"
end)
end)
end
function startGameModule.startGameFunction()
game.Players.PlayerAdded:Connect(function(p)
p.CharacterAppearanceLoaded:Connect(function(c)
wait()
local randomSeat:Seat = nil
local randomNo = Random.new():NextInteger(1, 20)
local seatOFFSET=CFrame.new(0,2,0)
local seatFolder = workspace.tableModel.seatFolder
local plateFolder = workspace.tableModel.plateFolder
local hum:Humanoid = c.Humanoid
randomSeat = seatFolder:GetChildren()[randomNo]
randomPlate = plateFolder:GetChildren()[randomNo]
if randomSeat:GetAttribute("occupied") == false then
c:PivotTo(randomSeat.CFrame* seatOFFSET)
wait()
randomSeat:Sit(hum)
randomPlate.Parent = c
M6D.Part1 = randomPlate
if randomSeat.Occupant then
randomSeat:SetAttribute("occupied", true)
randomSeat:SetAttribute("playerName", randomSeat.Occupant.Parent.Name)
randomPlate:SetAttribute("playerName", randomSeat.Occupant.Parent.Name)
randomPlate:SetAttribute("occupied", true)
c:SetAttribute("sitAttribute", true)
end
end
end)
end)
end
other module script:
function module.startAnim()
local p = game.Players.LocalPlayer
local c=p.Character
local hum:Humanoid = c.Humanoid
local pickupanim, pickupIdle = script.pickupAnim, script.pickupIdle
local pickupanimtrack, pickupIdletrack = hum.Animator:LoadAnimation(pickupanim), hum.Animator:LoadAnimation(pickupIdle)
local M6D = c.plateM6D
M6D.Part0 = c.UpperTorso
script.Parent.Parent.Parent.Enabled = false
pickupanimtrack:Play()
pickupanimtrack.Ended:Wait()
pickupIdletrack:Play()
end