video of whats happening
https://gyazo.com/0f4853088be33547287d405d19d71733
local char = game.Workspace:WaitForChild(game.Players.LocalPlayer.Name)
local UIS = game:GetService("UserInputService")
local ts = game:GetService("TweenService")
for i,v in pairs(char:GetDescendants()) do
if (v:IsA("Part") or v:IsA("BasePart") or v:IsA("MeshPart")) and v.Name ~= "UpperTorso" and v.Name ~= "LowerTorso" and v.Name ~= "LeftHand" and v.Name ~= "LeftUpperArm" and v.Name ~= "RightUpperArm" and v.Name ~= "RightLowerArm" and v.Name ~= "LeftLowerArm" and v.Name ~= "LeftRightArm" and v.Name ~= "RightHand" and v.Name ~= "RightFoot" and v.Name ~= "LeftFoot" and v.Name ~= "LeftLowerLeg" and v.Name ~= "RightLowerLeg" and v.Name ~= "RightUpperLeg" and v.Name ~= "LeftUpperLeg" then
v.Transparency = 1
end
end
local mouse = game.Players.LocalPlayer:GetMouse()
mouse.Icon = script.Decal.Texture
local humanoid = char:FindFirstChild("Humanoid")
local head = char:FindFirstChild("Head")
head.face:Destroy()
local camera = game.Workspace.CurrentCamera
local RS = game:GetService("RunService")
local camerapart = Instance.new("Part")
local cameraweld = Instance.new("WeldConstraint")
local wakeup = humanoid:LoadAnimation(script.Animation)
wakeup.Priority = Enum.AnimationPriority.Action
cameraweld.Part0 = camerapart
cameraweld.Parent = char
camerapart.Parent = char
camerapart.Position = head.Position + Vector3.new(0,0,-1)
camera.CameraType = Enum.CameraType.Attach
camera.CameraSubject = camerapart
cameraweld.Part1 = head
UIS.MouseBehavior = Enum.MouseBehavior.LockCenter
local humrp = char:FindFirstChild("HumanoidRootPart")
local controls = require(game:GetService("Players").LocalPlayer.PlayerScripts.PlayerModule):GetControls()
controls:Disable()
humanoid:GetPropertyChangedSignal("FloorMaterial"):Connect(function()
end)
task.wait(0.5)
char:PivotTo(CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)))
char:MoveTo(Vector3.new(65.936, 2.317, -315.273))
wakeup:AdjustSpeed(1.5)
wakeup:Play()