How would I make the ice do damage in the script?
01 | plar = game.Players.LocalPlayer |
02 | Mouse = plar:GetMouse() |
06 | if charge > = 2 then return |
11 | local I = Instance.new( "Part" ) |
13 | I.BrickColor = BrickColor.new( "Medium blue" ) |
14 | I.BottomSurface = "Smooth" |
15 | I.TopSurface = "Smooth" |
17 | I.Size = Vector 3. new( 25 , 1 , 2 ) |
19 | I.CFrame = char.Torso.CFrame * CFrame.new( 0 , 0 , - 5 ) |
22 | local BV = Instance.new( "BodyVelocity" ) |
23 | BV.MaxForce = Vector 3. new( math.huge , math.huge , math.huge ) |
24 | BV.Velocity = char.Torso.CFrame.lookVector * 40 |
27 | I.CFrame = I.CFrame * CFrame.fromEulerAnglesXYZ( 0 , . 3 , 0 ) |
34 | Mouse.KeyDown:connect(press) |
How would I get the script to deal damage to those who hit the ice.