Mrdmlxo
(Mrdmlxo)
#1
I just wanted to move cloned model to target in particular speed so I used Velocity.
It had to work like rocketlauncher(cuz I cited its script),
but result. Their moving not different from non-scripted part
.
.
.
Model,
(‘whi’ is Primarypart and not anchored)
local keirea = game.ServerStorage.plaot.unsu1:Clone()
local whatbum = math.random(1,2)
keirea:PivotTo(CFrame.new(game.Workspace.unsucarino:FindFirstChild("bumoo"..whatbum).Position))
keirea.PrimaryPart.Orientation = game.Workspace.unsucarino:FindFirstChild("bumoo"..whatbum).raly.Orientation
keirea.PrimaryPart.Velocity = keirea.PrimaryPart.CFrame.lookVector * 50
keirea.Parent = game.Workspace:FindFirstChild(script.Parent.Name).forlck
Script,
(the part related velocity model only. I can give another part of script when you want)
rocketClone.CFrame = CFrame.new(spawnPosition, Pos)
rocketClone.Velocity = rocketClone.CFrame.lookVector * 50
rocketClone.Parent = workspace
rocketClone:SetNetworkOwner(nil)
and rocketlauncher script I cited.
Why only mine not worked?
Mrdmlxo
(Mrdmlxo)
#2
Someone help me m drifting in new topics!
If you cant understand it cuz little information, I will give you more info
Mystxry12
(Mystxry)
#3
Try this:
rocketClone.CFrame = CFrame.new(spawnPosition, Pos)
rocketClone.Parent = workspace
rocketClone:SetNetworkOwner(nil)
rocketClone:ApplyImpulse(Vector3.new(0, 0, -50) * rocketClone.AssemblyMass)
Mrdmlxo
(Mrdmlxo)
#4
As you gave, I edited Velocity to ApplyImpulse,
keirea = game.ServerStorage.plaot.unsu1:Clone()
whatbum = math.random(1,2)
keirea:PivotTo(CFrame.new(game.Workspace.unsucarino:FindFirstChild("bumoo"..whatbum).Position))
keirea.PrimaryPart.Orientation = game.Workspace.unsucarino:FindFirstChild("bumoo"..whatbum).raly.Orientation
keirea.Parent = game.Workspace:FindFirstChild(script.Parent.Name).forlck
keirea.PrimaryPart:ApplyImpulse(Vector3.new(0, 0, -50) * keirea.PrimaryPart.AssemblyMass)
But problem not solved
Actually, the script I want to fix is here. Rocketlauncher script was just what I cited
Mystxry12
(Mystxry)
#5
keirea = game.ServerStorage.plaot.unsu1:Clone()
whatbum = math.random(1,2)
keirea:PivotTo(CFrame.new(game.Workspace.unsucarino:FindFirstChild("bumoo"..whatbum).Position))
keirea.PrimaryPart.Orientation = game.Workspace.unsucarino:FindFirstChild("bumoo"..whatbum).raly.Orientation
keirea.Parent = game.Workspace:FindFirstChild(script.Parent.Name).forlck
keirea.PrimaryPart:ApplyImpulse(keirea.PrimaryPart.LookVector * FORCE)
Edit the FORCE variable to a number until you get satisfactory results.
Mrdmlxo
(Mrdmlxo)
#6
keirea.PrimaryPart:ApplyImpulse(keirea.PrimaryPart.LookVector * FORCE)
like this, error message appeared so I edited it,
keirea.PrimaryPart:ApplyImpulse(keirea.PrimaryPart.CFrame.lookVector * 500)
like here.
And result was same… Umm well, was it maybe the right result?
I just want to move model straightly in particular speed.