game.ReplicatedStorage:WaitForChild("LoadCharacterEvent")
local Credits = script.Parent.MainButtonHold:WaitForChild("Credits")
local Deploy = script.Parent.MainButtonHold:WaitForChild("Deploy")
local Info = script.Parent.MainButtonHold:WaitForChild("Info")
local Fade = script.Parent:WaitForChild("Background2")
local CameraPoints ={"1","2","3"}
local Camera = workspace.CurrentCamera
Camera.CameraType = Enum.CameraType.Scriptable
i = 2
-----------------------------------------------------------------------------------
--Camera Manipulation Stuff
game.Players.LocalPlayer.Character:FindFirstChild("Torso").Anchored = true
game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").MaxHealth = math.huge
game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").Health = math.huge
Camera.CoordinateFrame = CFrame.new(workspace.Cameras:FindFirstChild(tostring(1)).Position,workspace.CamPart.Position)
function fadeBlack()
for i= 10,0,-1 do wait()
Fade.Transparency = i /10
end
wait(1)
for i= 0,10 do wait()
Fade.Transparency = i /10
end
end
function rotation()
while true do wait(10)
fadeBlack()
Camera.CoordinateFrame = CFrame.new(workspace.Cameras:FindFirstChild(tostring(i)).Position,workspace.CamPart.Position)
Camera.Focus = CFrame.new(workspace.CamPart.Position)
if i < #CameraPoints then
i = i+1
print(i)
elseif i == #CameraPoints then
i = i-(#CameraPoints-1)
print(i)
end
end
end
function lowerGUIs()
for i,v in ipairs(script.Parent.MainButtonHold:GetChildren()) do
if v.Name == "Credits" or v.Name == "Teams" or v.Name == "Info" then
v:TweenPosition(UDim2.new(v.Position.X.Scale, v.Position.X.Offset, v.Position.Y.Scale+.5, v.Position.Y.Offset), "Out", "Quad", 1, true)
end
end
end
function raiseGUIs()
for i,v in ipairs(script.Parent.MainButtonHold:GetChildren()) do
if v.Name == "Credits" or v.Name == "Teams" or v.Name == "Info" then
v:TweenPosition(UDim2.new(v.Position.X.Scale, v.Position.X.Offset, v.Position.Y.Scale-.5, v.Position.Y.Offset), "Out", "Quad", 1, true)
end
end
end
-----------------------------------------------------------------------------------
spawn(function() rotation() end)
for i,v in pairs(script.Parent.MainButtonHold:GetChildren()) do
if v:IsA("TextButton") then
v.MouseButton1Down:connect(function()
if v.Name == "Deploy" then
Camera.CameraSubject = game.Players.LocalPlayer.Character
Camera.CameraType = "Custom"
game.ReplicatedStorage:FindFirstChild("LoadCharacterEvent"):FireServer(game.Players.LocalPlayer.Name)
elseif v.Name == "Back" then
raiseGUIs()
script.Parent.MainButtonHold.Raiders:TweenPosition(UDim2.new(-.2,0,.3,0), "Out", "Quad", 1, true)
script.Parent.MainButtonHold.Defenders:TweenPosition(UDim2.new(1,0,.3,0), "Out", "Quad", 1, true)
script.Parent.MainButtonHold.Back:TweenPosition(UDim2.new(.375,0,1,0), "Out", "Quad", 1, true)
script.Parent.Logo:TweenPosition(UDim2.new(.375,0,.09,0), "Out", "Quad", 1, true)
script.Parent.CreditBlock:TweenPosition(UDim2.new(.375,0,1.2,0), "Out", "Quad", 1, true)
script.Parent.InfoBlock:TweenPosition(UDim2.new(.375,0,1.2,0), "Out", "Quad", 1, true)
elseif v.Name == "Defenders" and game.Players.LocalPlayer:IsInGroup(290188) then
Camera.CameraSubject = game.Players.LocalPlayer.Character
Camera.CameraType = "Custom"
game.Players.LocalPlayer.TeamColor = game:GetService("Teams"):FindFirstChild("Gallantry").TeamColor
game.ReplicatedStorage:FindFirstChild("LoadCharacterEvent"):FireServer(game.Players.LocalPlayer.Name)
elseif v.Name == "Raiders" then
Camera.CameraSubject = game.Players.LocalPlayer.Character
Camera.CameraType = "Custom"
game.Players.LocalPlayer.TeamColor = game:GetService("Teams"):FindFirstChild("Invaders").TeamColor
game.ReplicatedStorage:FindFirstChild("LoadCharacterEvent"):FireServer(game.Players.LocalPlayer.Name)
elseif v.Name == "Info" then
lowerGUIs()
script.Parent.Logo:TweenPosition(UDim2.new(.375,0,1,0), "Out", "Quad", 1.5, true)
script.Parent.MainButtonHold.Back:TweenPosition(UDim2.new(.375,0,1,0), "Out", "Quad", 1, true)
script.Parent.MainButtonHold.Back:TweenPosition(UDim2.new(.375,0,.90,0), "Out", "Quad", 1, true)
script.Parent.InfoBlock:TweenPosition(UDim2.new(.375,0,.2,0), "Out", "Quad", 1, true)
elseif v.Name == "Credits" then
lowerGUIs()
script.Parent.Logo:TweenPosition(UDim2.new(.375,0,1,0), "Out", "Quad", 1.5, true)
script.Parent.MainButtonHold.Back:TweenPosition(UDim2.new(.375,0,1,0), "Out", "Quad", 1, true)
script.Parent.MainButtonHold.Back:TweenPosition(UDim2.new(.375,0,.90,0), "Out", "Quad", 1, true)
script.Parent.CreditBlock:TweenPosition(UDim2.new(.375,0,.2,0), "Out", "Quad", 1, true)
end
end)
end
end
COMMUNITY QUESTION
I have a GUI Tweening script, and it works in one game, but not the other, can somebody help me?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
It's almost certainly because something doesn't exist that the script is looking for. It's rather annoying that you give us a 100+ line script, don't tell us where there's an error, and just say, "Fix This".
There's no error, and I've checked back and forth for something that doesn't exist in the current game that exists in the previous -.-
Are you using a Local Script? Is FE on?
I am using a Local Script, and what's FE?