Hello, I’m trying to animate a billboard gui however its not positioned straight. Look:
![image](//devforum-uploads.s3.dualstack.us-east-2.amazonaws.com/uploads/original/5X/a/b/9/f/ab9f058e3ee8aaf7232775cbf60bfb76bb8583a9.png)
See how its not alligned?
Here is my code:
local clone = RepAssets.Emotion:Clone()
clone.Parent = petmodel
clone.Size = UDim2.new(0,0,0,0)
clone.StudsOffset = Vector3.new(0,0,0)
task.wait(.1)
local tween = TweenService:Create(clone, TweenInfo.new(.2, Enum.EasingStyle.Linear), {
["Size"] = UDim2.new(2,0,2,0),
["StudsOffset"] = Vector3.new(0, 2.5, 0)
})
tween:Play()
tween.Completed:Wait()
2 Likes
maybe try making the billboard clone adornee to a part that is centered?
okay I tried this but its still off. It seems to consistently be leanign toward the right a bit
![image](//devforum-uploads.s3.dualstack.us-east-2.amazonaws.com/uploads/original/5X/1/0/4/0/10401697a9988893496733bd45a1d9886345c532.jpeg)
![image](/secure-uploads/uploads/original/5X/c/2/c/c/c2cc9763f47f3670bda32b11ddbe8a76582ad776.png)
![image](/secure-uploads/uploads/original/5X/d/b/c/8/dbc89cee7c0c07a3fbcbfb76fb3b2a1903c6a6a5.jpeg)
Erex_147
(Erex)
#4
try studs offset world instead of studs offset
Okay I think that worked. Thanks
Erex_147
(Erex)
#6
You’re welcome!
roblx ahjssjald
system
(system)
Closed
#7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.