You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear! A timer
What is the issue? Broken Script
What solutions have you tried so far? None
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
The code:
local twee = game.TweenService
local a = twee:Create(script.Parent, TweenInfo.new(10, Enum.EasingStyle.Circular, Enum.EasingDirection.Out), {Position = Vector3.new(83, 21.5, 159.5)}):Play()
wait(10)
a:Play()
It plays the tween instantly instead of in 10 seconds!
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.
Its better practice, simply. It also creates the service if it doesn’t exist although thats probably never going to be an issue you encounter since services are created almost immediately anyway. I agree that it is more efficient to type, but I guess its just not a normal thing
Also put the wait function before assigning the variable called “a” and remove the a:Play() since its already playing it because you added the :Play() function while assigning the variable
You should end up with this:
local twee = game.TweenService
wait(10)
local a = twee:Create(script.Parent, TweenInfo.new(10, Enum.EasingStyle.Circular, Enum.EasingDirection.Out), {Position = Vector3.new(83, 21.5, 159.5)}):Play()
local twee = game:GetService("TweenService")
local a = twee:Create(script.Parent, TweenInfo.new(10, Enum.EasingStyle.Circular, Enum.EasingDirection.Out), {Position = Vector3.new(83, 21.5, 159.5)})
wait(10)
a:Play()