I am trying to make a blade which summons meteors, The thing is that the meteors summon puddles of fire on impact, but some occasions the puddle will appear in mid-air!
Meteor.Touched:Connect(function(Part)
if HasBeenTouched == false and not Part.Parent:FindFirstChildOfClass("Humanoid") and Part.Name ~= "ChaosMeteor" and Part.Name ~= "VoidPuddle" then
HasBeenTouched = true -- to stop puddle overlay
if Part.Parent:FindFirstChildOfClass("Humanoid") then
return
end
local Puddle = VoidFolder.VoidPuddle:Clone()
Puddle.Parent = workspace
Puddle.Position = Meteor.Position + Vector3.new(0,-2,0) -- i thought this would work as the meteor is 4 studs wide
Puddle.Pain.Owner.Value = Owner
Puddle.Formation.Disabled = false
Puddle.Pain.Disabled = false
Puddle.Form:Play()
Meteor:Destroy()
end
end)

1 comment
This is a deprecated method. Please use workspace:Raycast() and RaycastParams.