#Help
1 messages · Page 1 of 1 (latest)
task.wait(0.5)
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local part = game.Workspace.Part
while true do
part.CFrame = char.UpperTorso.CFrame * CFrame.new(0,0,5)
task.wait(0.01)
end
what is probelm here
here is error
UpperTorso is not a valid member of Player "Players.zyadnadeemmax"
is your game in r6, or r15?
r15
my skin is r15 but game idk
check your game settings
it say save to roblox first
Home -> Game Settings -> Avatar in studio
are you sure
it would say character instead of player
UpperTorso is not a valid member of Model "Workspace.zyadnadeemmax"
here other error
and you gotta do char:WaitForChild(
character dont load fully at start of script
char:WaitForChild("UpperTorso") i think
i did same thing
are you in r6??
i am r15
damn 😔
ok how i change game settings to r15 too ?
yes its r15
task.wait(0.5)
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local part = game.Workspace.Part
local upper = char:FindFirstChild("UpperTorso")
while true do
part.CFrame = upper * CFrame.new(0,0,5)
task.wait(0.01)
end
here i change it
now diffrante error
what does it say now?
Players.zyadnadeemmax.PlayerScripts.LocalScript:8: invalid argument #1 (CFrame expected, got nil)
change findfirstchild to waitforchild
no you just forgot to add .CFrame to the torso
same
oh i am dumb
yeah worked but why this code didnt
ohh i know problem ty guys
task.wait(0.5)
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local part = game.Workspace.Part
while true do
part.CFrame = char:WaitForChild("UpperTorso").CFrame * CFrame.new(0,0,5)
task.wait(0.01)
end
```here is code and it worked
but i need help at other thing
why people use ToWorldSpace() and i see no diffrance ?
Who uses that what
i would suggest using HumanoidRootPart
instead of