I am coding a door system like in Adopt me **where you walk towards it, and it opens and when you touch the neon white bit: your character walks by itself further in and eventually it teleports **you when the screen is faded. I have managed to do it however the humanoid:MoveTo() only works on my computer. On my ipad it does everything other than your character moving further in and freezing the players input on the movement of the character (again, this all works on the computer in both Studio and Roblox Player) Please would any body be able to help me?
This is a snipit of the code I am using:
humanoidRootPart.Touched:Connect(function(hit)
if hit.Name == "Trigger" and hit.Parent.Name == "DoorSystem" then
if currentDoor == nil and alive then
currentDoor = hit.Parent
openDoors("Open")
end --Open Doors
elseif hit.Name == "TP" then
if currentDoor ~= nil and not teleporting and alive then
teleporting = true
enableControls(false)
local neon = currentDoor["Neon"]
humanoid:MoveTo(currentDoor.WalkTo.Position) -- **PART I AM HAVING TROUBLE WITH. WORKS ON PC. TRIED USING VECTOR VALUES, SAME RESULTS.**
camera.CameraType = Enum.CameraType.Scriptable
tweenService:Create(camera, TweenInfo.new(2), {CFrame = neon.CFrame * CFrame.new(0, 0, -1 + -neon.Size.Z/2) * CFrame.Angles(0, math.pi, 0)}):Play()
wait(2)
local CC = Instance.new("ColorCorrectionEffect", game.Lighting)
CC.Name = "TeleportLighting"
CC.Brightness = 1
if alive then
camera.CameraType = Enum.CameraType.Custom
camera.CameraSubject = character.Humanoid
humanoidRootPart.CFrame = currentDoor["Target"].CFrame
tweenService:Create(CC, TweenInfo.new(1), {Brightness = 0}):Play()
enableControls(true)
teleporting = false
end
end
end
end)
Thanks in advance!
