- What do you want to achieve? Keep it simple and clear!
I have a car in a game which is a model, i dont want do drive it, i just want to move it with the TweenService by moving it to a “GoalPart”.
- What is the issue? Include screenshots / videos if possible!
I created a script with the help of the Beta Feature that can create scripts but whenever i start the game and the script executes, nothing happens, and not even a Error Message! So what did i do wrong?
(Maybe Important: Script is in ServerScriptService (Normal Script) , both Models are in Workspace)
This is my script:
local mod1 = game.Workspace.Car.PrimaryPart
local GoalPart1 = game.Workspace.GoalPart1
local TweenService = game:GetService("TweenService")
local Info = TweenInfo.new(
30, -- Time
Enum.EasingStyle.Linear,
Enum.EasingDirection.InOut,
0,
false,
0.2
)
local Tween = TweenService:Create(mod1, Info, {CFrame = GoalPart1.CFrame})
Tween:Play()