I Am Making A Meteor Spawning Tool It Functions Besides The Fact It Does Not Launch At The Mouse Position Any Explanation Why? Here Is The Script:

local sp = script.Parent
local equipped = false

function FireMeteor(Position)
	local Meteor = game.ServerStorage.NaturalDisasters.Meteor:Clone()
	Meteor.Parent = workspace
	Meteor.Position = Vector3.new(math.random(-555,555),Meteor.Position.Y + 30,math.random(-555,555))
	Meteor.BodyPosition.Position = Vector3.new(Position)
end

sp.Equipped:connect(function(mouse)
	equipped=true
	mouse.Button1Down:connect(function()
	FireMeteor(mouse.Origin)
	end)
end)

sp.Unequipped:connect(function()
	equipped=false
end)

3 comments

1

Try not using ServerStorage.

0

that is not the problem

0

it works fine except it wont launch to the mouse's position