0% found this document useful (0 votes)
14 views1 page

Roblox Tween Animation Script

The document contains code that teleports a player's character between three locations over a period of time using tween animations. It reduces gravity, gets the player's character and tween service, then creates tweens to move the character from one CFrame to another over set time periods before waiting for completion and moving to the next location.

Uploaded by

lionelwaigand
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views1 page

Roblox Tween Animation Script

The document contains code that teleports a player's character between three locations over a period of time using tween animations. It reduces gravity, gets the player's character and tween service, then creates tweens to move the character from one CFrame to another over set time periods before waiting for completion and moving to the next location.

Uploaded by

lionelwaigand
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

local players = game:GetService("Players")

local plr = [Link]


local tween = game:GetService("TweenService")
[Link] = 0.5 -- reduces glitchiness
function main()
local humroot = [Link]:WaitForChild("HumanoidRootPart")
local startTween = tween:Create(humroot, [Link](4,
[Link], [Link], 0, false, 0), {CFrame =
[Link](-51.3946571, 67.3164978, 814.888123, -0.999501824, -0.00451373775,
0.0312365349, -8.62000427e-09, 0.989720345, 0.14301616, -0.0315609723, 0.142944917,
-0.989227295)})
startTween:Play()
[Link]:Wait()
local mainTween = tween:Create(humroot, [Link](20.50,
[Link], [Link], 0, false, 0), {CFrame =
[Link](-77.0485153, 82.6013031, 8625.86719, -0.995574772, 0.022579968, -
0.0912195817, -4.97565011e-09, 0.970703065, 0.240282282, 0.0939726979, 0.23921898,
-0.966407478)})
mainTween:Play()
[Link]:Wait()
local endTween = tween:Create(humroot, [Link](4,
[Link], [Link], 0, false, 0), {CFrame =
game:GetService("Workspace").[Link]
ame})
endTween:Play()
[Link]:Wait()
end
main()
[Link]:Connect(function(char)
char:WaitForChild("HumanoidRootPart")
main()
end)

You might also like