#clone wrong direction

1 messages · Page 1 of 1 (latest)

modern saffron
#

proximityprompt = script.Parent
Ammovalue = script.Parent.Parent.Parent.Value
local clone = game.Workspace.CowAmmo
local speed = 500

proximityprompt.Triggered:Connect(function()
local part = clone:Clone()
part.Parent = workspace.BulletFolder
part.Position = proximityprompt.Parent.Position

part.Velocity = part.CFrame.LookVector * speed

Ammovalue.Value = Ammovalue.Value - 1

if Ammovalue.Value == 0 then
    proximityprompt.Enabled = false
end

end)

#

script👆👆

smoky quest
#

Cant u rotate it?

tough hornet
#

@modern saffron add an attachment that is correctly facing in your tool then clone the world cframe of that attachment when you clone your ammo thing

modern saffron
tough hornet
#

just set the cframe of your ammo thing to the cframe of the attachment

modern saffron
#

Sound very confusing😧

foggy knoll
#

proximityprompt = script.Parent
local Ammovalue = script.Parent.Parent.Parent.Value
local clone = game.Workspace.CowAmmo
local speed = 500

proximityprompt.Triggered:Connect(function()
local part = clone:Clone()
local character = proximityprompt.Parent.Parent.Parent -- you just gotta find the character that uses the tool (it might be different for you)
local torso = character:WaitForChild("HumanoidRootPart")
part.Parent = workspace.BulletFolder
part.CFrame = proximityprompt.Parent.CFrame

part.Velocity = torso.CFrame.LookVector * speed


Ammovalue.Value = Ammovalue.Value - 1

if Ammovalue.Value == 0 then
    proximityprompt.Enabled = false
end

end)

#

if it works let me know

#

if else lmk also

modern saffron
#

Erm actually it solved

surreal abyssBOT
#

studio** You are now Level 5! **studio

modern saffron