-
What do you want to achieve? Keep it simple and clear!
Topic says everything -
What is the issue? Include screenshots / videos if possible!
I done this with simple touch function, buut this happens
they just get stuck because of random trajectory after hit(code later) -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I was thinking about making reflectance in other side like this
like it was falling 45* to surface and reflected 45* to surface. But idk how to do it
My current code:
function create()
local random = Random.new()
local randomTrajX = random:NextNumber(1000, -1000)
local randomTrajZ = random:NextNumber(1000, -1000)
local randomTrajY = random:NextNumber(1000, -1000)
script.Parent.AlignPosition.Position = Vector3.new(randomTrajX, randomTrajY, randomTrajZ)
end
create()
script.Parent.Touched:Connect(function()
create()
end)
with this code stuck thing is happening