I am attempting to do a loading screen AND a drop screen here is my overall script. I'll add a few comments to show what it's doing
function choosemap()
local loading = script.Parent:WaitForChild("Loading")
local slide = loading:WaitForChild("SlideScript")
local joke = loading.TextLabel:WaitForChild("Script") -- In Case The Objects Haven't Loaded
local image = script.Parent:WaitForChild("Image")
local move = image:WaitForChild("DropScript")
mapnum = math.random(1) -- Randomize Map Number
print("Map Chosen")
wait(1)
if mapnum == 1 then -- If Number Is 1
wait(2)
script.Parent.Text.Text = "Map Chosen!"
wait(1)
script.Parent.Image.ImageLabel.Image = "rbxgameasset://Images/Construction Site" -- Change Image To The Map Image
script.Parent.Text.Text = "Construction Site"
script.Parent.Difficulty.Text = "Difficulty: Easy"
move.Disabled = false -- Activate Drop Script
wait(3)
move.Disabled = true -- Deactivate Drop Script (after it goes back up)
script.Parent.Image.ImageLabel.Image = ""
script.Parent.Text.Text = "Game in progress"
script.Parent.Difficulty.Text = ""
p = game.Players:GetChildren() -- Get Players
slide.Disabled = false -- Slide Script Activated
joke.Disabled = false -- Changed Text To A Joke Related To The Game
wait(3)
joke.Disabled = true -- Disabled so it can make another joke
slide.Disabled = true -- Slide Script Deactivated
game.Lighting.ConstructionSite:clone().Parent = game.Workspace -- Clone Map
for i= 1, #p do
p[i].Character.Torso.CFrame = CFrame.new(124, 2.5, -211) -- Teleport to map
end
wait(15.85)
game.Workspace.ConstructionSite:Destroy() -- Destroy Map
script.Parent.Text.Text = "Intermission 10 seconds" -- Start Again
script.Parent.Text.Script.Disabled = false
wait(10)
choosemap()
end
end --Function end
wait(10)
choosemap()
Here are the scripts I made for the Slide and Drop GUIs Slide:
local frame = script.Parent
local animType = "Sine"
local animDirection = "InOut"
frame:TweenPosition(UDim2.new(0, 0,0, 0), animDirection, animType, 0.6, true) -- Slide In
wait(3)
frame:TweenPosition(UDim2.new(1, 0,0, 0), animDirection, animType, 0.6, true) -- Slide Out
Drop:
local frame = script.Parent
local animType = "Sine"
local animDirection = "InOut"
frame:TweenPosition(UDim2.new(0.5, 0,0, 0), animDirection, animType, 0.6, true) -- Drop Down
wait(3)
frame:TweenPosition(UDim2.new(0.5, 0,-2, 0), animDirection, animType, 0.6, true) -- Climb Up
Can anyone please tell me what I'm doing wrong.

1 comment
what isn't working and where is the problem located