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

I cant do vector3 on models?

Asked by
Xepois 0
7 years ago

I'm a beginner in Lua but I know how to do vector3 and loops. I've came across this problem where i cant do vector3 for models.

https://gyazo.com/7ae360721c197b6c8bef9219bb344860

https://gyazo.com/7b3a160e5ba976bf71b92c3b113dbba7

I am 100% sure that the script is fully working and i have pre-checked to see if there are any faults.

its just lua doesn't like models.

0
You have several problems in there, but the reason you get the error is because "BARRIER" simply doesn't exist in the model. Perci1 4988 — 7y
0
D= workspace.Shop:WaitForChild("BARRIER") DeveloperSolo 370 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

"I am 100% sure that the script is fully working and i have pre-checked to see if there are any faults." It is obvious the script is not fully working, as you just posted an error from the script... For some reason BARRIER does not exist in shop. I don't know how you add it in, but use this code:

D = game.Workspace.Shop:FindFirstChild("BARRIER")
if D then -- check if barrier is not nil
-- your code
end

This will stop your error, but will not fix it. How are you putting the barrier in to shop?

Ad

Answer this question