In this Game the Items randomly spawns on the random Spots , Im wanna make game similar to this Game, But Im very bad at Scripting and don’t know this , im need help, Also im can’t learn Scripting , also im don’t have Enough money for hire the Team
Haven’t coded in a while, and I didn’t check out the game, but this is a simple script to randomly spawn Tools on a part.
You can modify it to spawn parts or models, or whatever you want. I used Tools as an example in this script.
local Base = [PathToPart]] --// An invisible or visible part that you want the items to randomly spawn on
local Item = [PathToItem] --// The Item you want to spawn
while true do
local clone = Item:Clone()
clone.Parent = game.Workspace
clone.PrimaryPart.CFrame = CFrame.new(math.random((Base.CFrame.X - Base.Size.X/2),(Base.CFrame.X + Base.Size.X/2)),(Base.CFrame.Y + clone.PrimaryPart.Size.Y),math.random((Base.CFrame.Z - Base.Size.Z/2),(Base.CFrame.Z + Base.Size.Z/2)))
task.wait(math.random(20,40)) --// How often an Item will spawn
end
Im not Believe if this works and Im recommended to check the game cuz you may mistake (Im can check it btw)
Please Another reply/Help Please!!! ![]()
Why not? It makes getting help from others a lot easier if you understand what code does.
You could probably just get a random position on your basepart and then clone the items into that position. I dont have my computer with me right now so i unfortunately cant give you my example properly, but you could create a GetRandomPoint function using math.random and the baseparts position.
This here post might be able to help you with getting the position.
Sorry if i misunderstood and ill try to get to my computer later to help u better ![]()
Im can’t find appropriate Coding school + Im saving money on other thing + Tutorials is hard perceived for me , Im can’t learn scripting and can’t get team and im can’t give access to my games to peoples that im not trust and also im not have Friends that good at Scripting
You don’t have to pay to learn programming. Plenty of free courses.
Your English is not the greatest here so it’s kind of hard to understand, but I believe you mean to say you find tutorials difficult to understand? Well, most Roblox scripting tutorials are terrible; that’s not a you problem. I’d recommend not learning from specialized Roblox tutorials.
Anyone can learn programming if they actually try. It’s like learning another human language.
You don’t need a team to make a game.
Understandable, but you don’t have to give the entire game to people. Just model files and script contents are enough to get help from others.
You don’t need to have friends that are good at scripting to write code.
Don’t Work, Im try this Script and it’s don’t work and where Im must put the Script