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.
"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?