Player = game.Players.LocalPlayer
Spawn2 = game.Workspace.Spawn4
OverScreen = game.Players.LocalPlayer.PlayerGui.FightingArena.OverScreen
FightingArenaB = game.Players.LocalPlayer.PlayerGui.FightingArena.FightingArenaB
Status = script.Parent.OverScreen.Status
HasPressedTeleport = false

function MouseEnterFightingArenaB()
	FightingArenaB.FontSize = "Size36"
	FightingArenaB.BackgroundTransparency = 0

	
end

function MouseLeftFightingArenaB()
	FightingArenaB.FontSize = "Size24"
	FightingArenaB.BackgroundColor3 = Color3.new(0, 0, 0)
	FightingArenaB.BackgroundTransparency = 0.1

	
end

function TeleportPlayer()
	if HasPressedTeleport == false then
		OverScreen.Transparency = 1
		wait(0.1)
		OverScreen.Transparency = 0.9
		wait(0.1)
		OverScreen.Transparency = 0.8
		wait(0.1)
		OverScreen.Transparency = 0.7
		wait(0.1)
		OverScreen.Transparency = 0.6
		wait(0.1)
		OverScreen.Transparency = 0.5
		wait(0.1)
		OverScreen.Transparency = 0.4
		wait(0.1)
		OverScreen.Transparency = 0.3
		wait(0.1)
		OverScreen.Transparency = 0.2
		wait(0.1)
		OverScreen.Transparency = 0.1
		wait(0.1)
		OverScreen.Transparency = 0
		wait(0.5)
		Player.Character:MoveTo(Spawn2.Position)
		wait(0.5)
		Status.Transparency = 1
		wait(0.1)
		OverScreen.Transparency = 0
		wait(0.1)
		OverScreen.Transparency = 0.1
		wait(0.1)
		OverScreen.Transparency = 0.2
		wait(0.1)
		OverScreen.Transparency = 0.3
		wait(0.1)
		OverScreen.Transparency = 0.4
		wait(0.1)
		OverScreen.Transparency = 0.5
		wait(0.1)
		OverScreen.Transparency = 0.6
		wait(0.1)
		OverScreen.Transparency = 0.7
		wait(0.1)
		OverScreen.Transparency = 0.8
		wait(0.1)
		OverScreen.Transparency = 0.9
		wait(0.1)
		OverScreen.Transparency = 1
		wait(0.1)
	
	end
end

FightingArenaB.MouseEnter:connect(MouseEnterFightingArenaB)
FightingArenaB.MouseLeave:connect(MouseLeftFightingArenaB)
FightingArenaB.MouseButton1Down:connect(TeleportPlayer)

" This was working before, but then it suddenly stopped working so....

6 comments

0

Also is there anyway to go to an earlier version of you're game?

0

You could upload an old autosave file if you can find one. Unless you backed up your game before, that's your best option. Also, could you give any errors you might've had? The code is messy and not too many people will want to read through it.

0

Sorry, but im confused..why are you manually setting the transparency? Is this a method im not aware of...

0

@Farsalis Yes, you can set the Transparency...

0

So I noticed you're directly accessing the PlayerGui. I recommend a WaitForChild on PlayerGui, as well as the UI element you're accessing. You also didn't provide any errors of sorts. Try setting up print("1") print("2") and so on around the script to see where it stops printing

0

I've seen a similar question and I already answered... should I answer again?