I followed a you tube tutorial to learn all of this, I am self teaching myslef alot from scratch, so yes I am very new to learning all of this. I have also hired a tutor to help me learn the Lua programming but I’m not that advanced yet. I meet with my tutor once a week but we have not gotten this advanced in my class yet. I’ve learned all of this on my own. I hired a tutor because I wasn’t getting the hang of scripting on my own without the aid of watching a you tube tutorial and I wanted and needed to be able to do it. This is why I am also a member of the developer forum so I can ask for help when needed.
I already noticed the red line under Body Position but the pet does indeed work, even with that red line. I already properly set the pet up to follow me in game without a purchase, without selling it in the game for Roblox so I know the pet works. But I want to sell the Pet in my game instead of giving it for free.
Everything I did here on my own following the tutorial that someone provided via youtube. I do all the work, it is how I am teaching myself. I learn by doing. I’ve spent many many many many hours teaching myself the past few months.
The issue is getting the pet to appear into my backpack once the purchase is made, this is not happening. I am able to make the purchase, I’ve clearly explained all of this in very good detail.
You paid a tutor for Lua you don’t need to do that is very easy to learn. Anyway one of the errors is from the bodyposition thing. And I think the rock one is erroring because you called waitforchild and put an instance as the parameter instead of a string.
Can you please give me details just like I gave you ? When u write it in a couple sentences like you did it really does not help me understand. I need details.
local owner = newPet.player.ID
workspace:WaitForChild(owner) -- error
workspace:WaitForChild(owner.Name) -- success because you put in the objects name
Neither did this. If I run a server test, I am able to click and buy the gamepass and the explorer window now shows it in my backpack but my screen does not show it so the item isn’t being provided.
…
local newPet = script.Parent
newPet.CanCollide = false
newPet.Anchored = false
local petPos = Instance.new(“BodyPosition”, newPet)
Oh okay then but why does that person say it needs to be a thing in replicatedstorage. If your cloning it from a serversided script then it shouldn’t be a problem where the pet is.
I tried that when the first person who replied told me to make it a Tool. I changed both of the pets to a tool, but it also did not work.
I am gong to provide more than one pet for purchase. If a player buys more than one pet, they need a place to sit while the player is not using them, I thought this was the backpack ?
That may be the case but I don’t know how to deal with that utf error sorry. But you may want to take the error and search it up on google and see what solutions other people had.
You probably should learn how basic things work so you can script your own version of this so it won’t confuse you. If you want to learn while your tutor is offline you can watch these youtubers and videos.