Hello, so i have a problem here. I want it to be if a part is touched (tele1) then u teleport to part 2 (tele2) with some sound and camera movement before it teleports u.
Here is the script i cant seem to figure it out
local cutmusic = game.Workspace.cutmusic4.Sound
local camera = game.Workspace.CurrentCamera
local SceneBlur = game.Lighting.CutBlur
local tele1 = script.Parent.hTele1
local tele2 = script.Parent.hTele2
local debounce = false
tele1.Touched:Connect(function(touched)
if touched.Parent:FindFirstChild("Humanoid") and debounce == false then
local char = touched.Parent
local humanoidrootpart = char.HumanoidRootPart
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = game.Workspace.cutcams.Part1.CFrame
local sound = Instance.new("Sound", game.Workspace.Doorbellsound)
sound.SoundId = "rbxassetid://131558930"
game.Workspace.Doorbellsound.Sound.Playing = true
if not sound.IsLoaded then
sound.Loaded:wait()
wait(2.5)
local sound = Instance.new("Sound", game.Workspace.Dooropensound)
sound.SoundId = "rbxassetid://157167203"
game.Workspace.Dooropensound.Sound.Playing = true
if not sound.IsLoaded then
sound.Loaded:wait()
SceneBlur.Enabled = false
game.Workspace.cutmusic4.Sound.Volume = 0.5
game.Workspace.cutmusic4.Sound.Volume = 0.4
game.Workspace.cutmusic4.Sound.Volume = 0.3
game.Workspace.cutmusic4.Sound.Volume = 0.2
game.Workspace.cutmusic4.Sound.Volume = 0.1
game.Workspace.cutmusic4.Sound.Volume = 0
game.Workspace.cutmusic4.Sound.Playing = false
camera.CameraType = Enum.CameraType.Custom
humanoidrootpart.Posistion = tele2.Position
debounce = true
end
end
end
end)
Any tips or improvements are welcome!
Thank u for reading.

2 comments
Try using CFrame instead of position
I get what u mean, but the whole thing doesnt work when u touch anymore