So, I have this map I made that tween moving parts. It worked for weeks and now it stopped working for some odd reason and I never touched the script. It works in Studio, but it does not work in the Roblox Client. Any solutions?
FootageError1.wmv (1.2 MB)
First of all, can you show your code. Second of all can you make your video not have to be downloaded
I uploaded the videos using the default uploader on forums.
local Rope = script.Parent
local TweenService = game:GetService(“TweenService”)
local Goal1 = {}
Goal1.Position = Vector3.new(-282, 19.5, 58)
local Goal2 = {}
Goal2.Position = Vector3.new(-298, 19.5, 58)
local Tweeninfo = TweenInfo.new(2.5)
local Tween1 = TweenService:Create(Rope , Tweeninfo , Goal1)
local Tween2 = TweenService:Create(Rope , Tweeninfo , Goal2)
while true do
Tween1:Play()
wait(2.5)
Tween2:Play()
wait(2.5)
end
This script has been working for weeks so I left it untouched, and it just randomly stops working in game. This started today.
Try this:
--//Services
local TweenService = game:GetService("TweenService")
--//Variables
local Rope = script.Parent
--//Controls
local tweenInfo = TweenInfo.new(2.5)
--//Loops
while Rope do
local Tween1 = TweenService:Create(Rope, tweenInfo, {Position = Vector3.new(-282, 19.5, 58)})
Tween1:Play()
Tween1.Completed:Wait()
local Tween2 = TweenService:Create(Rope, tweenInfo, {Position = Vector3.new(-298, 19.5, 58)})
Tween2:Play()
Tween2.Completed:Wait()
end
It’s doing the same thing. Working in Studio, but not working on Roblox itself.
I also copied and pasted from tutorials even though I know how to tween.
Is the script you put a local-script or server-script?
Im starting to wonder if theres an issue with Roblox itself. If it’s not only me then I will contact Roblox about it.
No, it’s a server script because tweens only work on server.
And it’s moving and tweening in Studio but not in Roblox. It makes no sense.
Tweens work both client-side and server-side. It may not be working in Roblox because of the lag that Tweens have when played on the server.
This won’t fix his problem. You can just put the number and it will automatically default the other values. Test it yourself.
Yeah, it still didn’t work. I think it is something to do with the Beta Studio, therefore, I might contact Roblox.