Hi,
So i have always wondered how to recreate the moving 3D kinda like uis as here:
https://gyazo.com/4df2f7e1ab57d6c846a36a5696b10f4a
(I never play pet sim but thats the only place i could think of to show)
So how can i make that and can a rookie scripter recreate something like similar to that?
Attach a BillboardGui to an invisible part. Add an AlignPosition to that part and make that part move towards the character.
It really cant be that easy, i had so many complicated stuff bro, i will try it out thanks
It is that easy, the hardest part is probably programming the AlignPosition and also setting up the mass of the part, but it will be fairly simple. If you need any help setting it up, feel free to ask.
You could also use LinearVelocity, which may look smoother.
yeah, if i need help i will ask, thanks alot
Oh yeah, i forgot. Is there a specifik name for this?
I’m assuming you’re struggling with using AlignPositions, so I’ve made a file for you:
PetSimDropAnimation.rbxl (59.3 KB)
Yo dude, i tried something myself and why doesnt this work?
local align = script.Parent.Parent.Attachment.AlignPosition
script.Parent.MouseClick:Connect(function(plr)
local char = plr.Character
local torso = char:FindFirstChild("Torso")
if torso then
align.Attachment1 = torso.BodyFrontAttachment
end
end)
Nvm, i see what i did wrong
I did some customising and made this:
local align = script.Parent.Parent.AlignPosition
script.Parent.MouseClick:Connect(function(plr)
local char = plr.Character
local torso = char:FindFirstChild("Torso")
if torso then
align.Enabled = true
while task.wait() do
align.Position = torso.Position
script.Parent.Parent.Touched:Connect(function(hit)
if hit.Name == "HumanoidRootPart" then
script.Parent.Parent:Destroy()
end
end)
end
end
end)
its working and because of you i finally know how to do stuff and know how to do stuff with align positions. I have two final questions tho, how do i make it faster? And why does it go the center of the world
Make sure your AlignPosition settings are the same as mine. To increase the speed, change the MaxForce or Responsiveness.
Fixed it, what i did was change the position of the thing to the pos of the part, but is there a way it does that automaticly?
Just do it in the script right when you clone it.
Code:
AlignPosition.Position = part.Position
Also, good on you for trying to understand how it works lol.
Yeah, i looked up tutorial to really learn the align pos stuff and i made this:
https://gyazo.com/8073949aedd5cbf445795200b7271ef4
pretty happy with it, i understand now most of the properties
Very nice. If you have your solution, please set one of the replies as the solution. Good luck with your game.
Thanks, as i was not trying to make a game, i wanted to know how to if i ever needed it in one of my future projects
Oh yeah, I would love to see a video of the final product.
I will update you if i ever need this, but i have no plans to use this in the future, i was just curious as how this worked
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.