Hello, I was trying to tween a teleporting GUI like the Roblox logo tilt but, it didn’t work.
any solution or help would be appreciated.
just use custom loading screen and then add script that tweens it
I did it but, doesn’t play the tween
You’ll have to show the script so people can find any problems with it.
alright here:
local TweenService = game:GetService("TweenService")
while wait(3) do
TweenService:Create(script.Parent.Icon, TweenInfo.new(3, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {Rotation = -15, Position = script.Parent.Icon.Position - UDim2.new(0, 0, 0, 75)}):Play()
wait(3)
TweenService:Create(script.Parent.Icon, TweenInfo.new(3, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {Rotation = 15, Position = script.Parent.Icon.Position + UDim2.new(0, 0, 0, 75)}):Play()
end
make it like this
if game:IsLoaded() then
- - tween script here
end
and put it in loop and then make it destroy itself after using tween
could you explain more, i don’t get it (i want it to tween in a teleport screen)
you should use game:IsLoaded() to check if it loaded with loading screen
like
while true do
wait(0.1)
if game:IsLoaded() then
TweenService:Create(script.Parent.Icon, TweenInfo.new(3, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {Rotation = -15, Position = script.Parent.Icon.Position - UDim2.new(0, 0, 0, 75)}):Play()
wait(3)
TweenService:Create(script.Parent.Icon, TweenInfo.new(3, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {Rotation = 15, Position = script.Parent.Icon.Position + UDim2.new(0, 0, 0, 75)}):Play()
wait(3)
script.Parent:Destroy()
end
end
Thanks, i will try it then mark it as a solution ok
I think it may not be working because Position should = a udim2.new() and not an actual calculation. I dont believe you can do calculations like that.
guys the tween it self works but, it doesn’t in the teleportation screen
what is the teleportation screen? a frame?
To clarify, everything works the GUI appears while teleporting and the tween(while not teleporting) too.
only thing that doesn’t work is that the tween doesn’t play while teleporting
hmm very interesting why it is not working
Please, I want solutions, I would appreciate it
please give the whole script. i should be able to fix it once you do.
No Need, I used tricks to do it ,because what i asked was impossible, thanks anyways.