Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

'?' Is not a valid member of Model

Asked by 6 years ago
Edited 6 years ago

i found the problem okay so i made a script that teleports you to a part inside a model but theres multiple models of the same name so the script is attacking a different model that i dont want to attack can anyone help with this?

script:

game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game.Workspace:FindFirstChild("Pokemon/Item").HumanoidRootPart.Position) + Vector3.new(1,0,0)
0
Then don't name each model the same? Or if you really have to, add Number Values to each to be able to identify them Amiaa16 3227 — 6y
0
Just an additional note, I suggest you change the Vector3 to (1, 1.35, 0) - if I'm not mistaken, the default height of the HumanoidRootPart is 1.35 on R15. sweetkid01 176 — 6y
0
You could rename the specific Model you are referring to when scripting the attack. HelperScripting -4 — 6y

Answer this question