This is a spell so when I cast it there's supposed to be an explosion but it doesn't work at all and in output, I get "18:12:30.136 Position is not a valid member of Model "Workspace.Dummy" - Server - bombarda:5" can someone explain whats wrong I'm so confused
local Part = script.Parent
--
local ex = Instance.new("Explosion")
ex.ExplosionType = Enum.ExplosionType.NoCraters
ex.Position = Part.Position
ex.BlastPressure = 0
ex.BlastRadius = 0
ex.Parent = Part
for _, v in pairs(game.Players:GetPlayers()) do
if (Part.Position - v.Character.HumanoidRootPart.Position).magnitude <= 12.5 then
coroutine.wrap(function()
v.Character.Humanoid:TakeDamage(40)
local humanoid = v.Character.Humanoid
local torso = v.Character.HumanoidRootPart
--
humanoid.PlatformStand=true
torso.CFrame=torso.CFrame*CFrame.new(0,0.2,0)*CFrame.Angles(-.5,0,math.random(0,0))
torso.Velocity=torso.CFrame.lookVector*-150
wait(3)
humanoid.PlatformStand=false
end)();
end
end
--
wait()
script:Destroy()

2 comments
On line 2, try removing the --
nope lol