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!
So I am trying to face the effect part in front of the player with a random x,z positions.
- What is the issue? Include screenshots / videos if possible!
I got something very weird that I do not want. The thing that I want is this (763) [NEW] Akaza showcase on All Star Tower Defense | Roblox - YouTube (Go to 6:05). I got something like this:
. So in a certain rotation it displays correctly but otherwise it doesn’t. How would I get it to position in the front always no matter what position it is facing
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have tried this How to make a part spawn in front of a player - Help and Feedback / Scripting Support - DevForum | Roblox but it didn’t 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!
local HRP = Character.HumanoidRootPart
local effects = {}
local randomNumber = math.random(1,5)
for i = 1, randomNumber do
local effect = game.Workspace.AirPunch:Clone()
effect.CFrame = HRP.CFrame * CFrame.new(Vector3.new(10, math.random(1,5), 10) * HRP.CFrame.lookVector)
effect.Parent = workspace
table.insert(effects, (#effects+1), effect) -- Insert into effects table
end
wait(5)
for i, v in pairs(effects) do
v:Destroy()
end
Thanks,
Indelton