I want to achieve this look when a player purchases something, but I have no clue how to start this.
A model fades in when a player purchases something, and I want to achieve that look for my game.
Any clues to what this is called?
I want to achieve this look when a player purchases something, but I have no clue how to start this.
A model fades in when a player purchases something, and I want to achieve that look for my game.
Any clues to what this is called?
They are called tycoons if you type up âhow to make a tycoon on robloxâ you will find a bunch of tutorials on how to make one.
Misunderstood, Iâm talking about how a model fades in from different angles after a purchase!
local TS = game:GetService("TweenService")
function FadeIn(Model)
for i,v in pairs(Model:GetDescendants()) do
if v:IsA("Part") or v:IsA("MeshPart") do
v.Transparency = 1
TS:Create(v, TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0), {Transparency = 0 --or u could use a numbervalue or smth with a set transparency}:Play() --im pretty sure tweens don't yield. if they do, wrap in a coroutine
end
end
end
You are able to search up things yourself on https://developer.roblox.com as it is a free library of all Roblox API. The DevForum is not a place where you ask for people to code for you, but rather a place to seek help if needed, share resources with other like-minded people etc.
Not sure if that script was supposed to operate, but thanks for the tip. Also wasnât asking for the code, just asking what would you call it so I could learn it.
Itâs called âTweenServiceâ a service that creates transition between something and something. Examples for the tycoon, it tweens the transparency from 1 to 0 so it looks like itâs fading in like that.
Iâm assuming you mean the model tweens its transparency and each part of the model âconstructsâ itself in that animation where everything is completely random and then fits together. I know what you mean.
Most likely, theyâre using TweenService to tween in the transparency. For the orientation, Iâm assuming they set each partâs orientation to a completely random amount and then set their position to be slightly and randomly offset. Then, they use TweenService to tween the modelâs orientation and transparency to how it is. Look into math.random() and Vector3.new() and TweenService. The end effect you get is a really nice âconstructionâ animation