What do you want to achieve? I want my ship to move players with it.
What is the issue? The ship just goes and doesnt take players with it.
What solutions have you tried so far? I tried using bodygyro and it doesnt wanna work here is the script.
local root = script.Parent
local root1 = script.Parent.BodyGyro.CFrame
local tweenservice = game:GetService("TweenService")
local Time = 450
local tweenInfo = TweenInfo.new(
Time,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out,
0,
false,
0
)
local properties = {Position = Vector3.new(7.572, 77.884, 8594.644)}
local tween = tweenservice:Create(root,tweenInfo,properties)
tween:Play()
--- Here is where the body gyro script is.
local properties1 = {Position = CFrame.new(7.572, 77.884, 8594.644)}
local tween1 = tweenservice:Create(root1,tweenInfo,properties1)
tween1:Play()
Instead of tweening the BodyGyro’s CFrame directly, tween the BodyGyro, modifying the CFrame value, like so: (oops accidentally posted)
local root = script.Parent
local root1 = script.Parent.BodyGyro
local tweenservice = game:GetService("TweenService")
local Time = 450
local tweenInfo = TweenInfo.new(
Time,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out,
0,
false,
0
)
local properties = {Position = Vector3.new(7.572, 77.884, 8594.644)}
local tween = tweenservice:Create(root,tweenInfo,properties)
tween:Play()
--Here is where the body gyro script is.
local properties1 = {}
properties1.CFrame = CFrame.new(7.572, 77.884, 8594.644)
local tween1 = tweenservice:Create(root1,tweenInfo,properties1)
tween1:Play()