You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I want to make a part from replicated storage be cloned into the workspace in a random position -
What is the issue? Include screenshots / videos if possible!
does not work, even when I tested with putting prints after each command. There is no errors in output. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have tried most solutions, and i have looked on dev hub. this code is my third revamp of trying to make it work
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
while true do
local x = game.Workspace.corner1.Position.X + math.random(-game.Workspace.corner1.Size.X/2,game.Workspace.corner1.Size.X/2)
local y = game.Workspace.corner1.Position.Y + math.random(-game.Workspace.corner1.Size.Y/2,game.Workspace.corner1.Size.Y/2)
local z = game.Workspace.corner1.Position.Z + math.random(-game.Workspace.corner1.Size.Z/2,game.Workspace.corner1.Size.Z/2)
game.ReplicatedStorage.Bonezones.DusttrustSlash.Part:Clone().Position = Vector3.new(x,y,z)
wait()