How would I go with adding an teleport script with proxmitiy prompt?

Code V V V

local mickey_mousegun = workspace.mickeys_gun
local mickey_mouse = workspace.mickeymouse
local sound2 = workspace.banned
local sound = workspace.Amogus
local sound3 = workspace.e
local sound4 = workspace.bean
local sound5 = workspace.chills
local sound6 = workspace.gunshoot
local sound8 = workspace["(Mac) Laugh"]
local hmmokso = workspace.mock
local type = workspace.type
local TeleportService = game:GetService("TeleportService")
local placeID_1 = 2879375909
local Part = workspace.Part
workspace.Part.ProximityPrompt.Triggered:Connect(function(player)
	Part.Transparency = 0.5
	type:Play()
	wait(9.5)
	wait(0.1)
	game.Lighting.TimeOfDay = 1
	game.Lighting.Atmosphere.Density = 5
	mickey_mouse.Transparency = 0
	mickey_mousegun.Transparency = 0
	sound2:Play()
	sound2.Volume = 200
	wait(3)
	TeleportService:Teleport(Place, player)
end)

Why do I need help?
I am making an mickey mouse game, and after you get banned from the mickey mouse club, you get teleported to another game where mickey mouse is in, and alot of scary stuff happens.

Can you shut up and stop asking for help?
A: no

Use teleport service.
More info here.

1 Like

it seems you didnt read the code ** :smiley: :smiley: :smiley: :smiley: :smiley: :smiley: :smiley:**

What exactly is the problem?? Are you getting any errors? Is any of the other stuff inside the triggered event happening (sounds/transparency stuff)

So more clarification would be great

it is fixed and i found out on my own

I did and I thought just informing on the function would be enough, create a local function

local function teleportPlayer(plr)
   TeleportService:TeleportAsync(123123123, {plr})
end)
— code

workspace.part.proximityprompt.triggered:Connect(function(player)
    - other code
    teleportPlayer(player)
end)

i said i fixed. it. ffsFFS

It didn’t update on my screen but good for you.

Be respectful and professional on the DevForum. They were just trying to help you.