This Topic has been permanently removed from the DevForum.
13 Likes
I think most people on the devforum would be able to do this, try making a more advanced tutorial.
4 Likes
Hi @Cookie_DevX, I often see a lot of people on the DevForum asking for help with this topic, so I thought it might help. But thanks for your opinion!
1 Like
You could do it in a simpler, easier to understand way. Using TweenService:
if hit.Parent == player.Character then
script.Parent.FadeFrame.Visible = true
local TweenService = game:GetService()
TweenService:Create(script.Parent.FadeFrame, TweenInfo.new(0.3,TweenInfo.new(0.3), {BackgroundTransparency = 0}:Play()
wait(1)
player.Character.HumanoidRootPart.CFrame = workspace.From.CFrame *CFrame.new(0, 15, 0)
TweenService:Create(script.Parent.FadeFrame, TweenInfo.new(0.3,TweenInfo.new(0.3), {BackgroundTransparency = 1}:Play()
end
2 Likes
It’s just easier to do and you don’t have to use a for loop, and it has less lines of codes.
1 Like
very good tutorial but like the rest, more pepole in dev forum can do this so avancing this system can help to the comunity!