I've tried every possible way yet come to no avail, i'd appreciate any help.
Line:
char.HumanoidRootPart.CFrame = CFrame.new(Vector3 -2,6,2)
Full script:
local player = game.Players.LocalPlayer
local char = player.Character
char.Humanoid.WalkSpeed = 0
char.Humanoid.JumpPower = 0
char.HumanoidRootPart.CFrame = CFrame.new(Vector3 -2,6,2)
Thanks for your time and consideration.
Hello rdkv!
You're using CFrame.new wrong!
You need to use CFrame like CFrame.new(Vector3 pos)
What does that mean? Well I will give you an example
local Player = game:GetService("Players").LocalPlayer local Character = Player.Character or Player.CharacterAdded:Wait() local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart") HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-2,6,2))
Good luck, if you have any questions tell me!