I need to create an effect like this, but I don’t know how to do it
Use a decal, I can see, is this on ROBLOX?
in the portal, this effect moves
Yet again, make a script that can rotate that decal!
No, make your image label into a oval, what I meant;
- Go to your image editor and change it to and oval.
- Take my advice and take this code.
Code for a model
function rotateMod(mod,center,rotation)
local parts ={}
local function scan(parent)
for _,obj in pairs(parent:GetChildren()) do
if (obj:IsA("BasePart")) then
table.insert(parts,obj)
end
scan(obj)
end
end
scan(mod)
for _,part in pairs(parts) do
part.CFrame = (center*rotation*(center:inverse()*part.CFrame))
end
end
local mod = script.Parent
local step = 1
for i = 0,360,step do
while true do
rotateMod(mod,mod:GetModelCFrame(),CFrame.Angles(0,math.rad(step),0))
wait()
end
wait()
end
Code for a ImageLabel
while true do
script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0,0.1,0)
wait(0.01)
end
I use SurfaceGui and SizingMode.
I got the effect I need, thanks for the help!
Ok, bye hope you have a great time making a game.
Happy coding!
1 Like
This topic will close 14 days after the last reply. Ok.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.