Code:
v.Touched:Connect(function(hit) if hit.Parent ~= nil then local tween = game:GetService("TweenService") local boom = TweenInfo.new(0.4,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0) local boomprop = {Anchored = true;CanCollide = false;Transparency = 1;Size = Vector3.new(48,48,48) } local ew = tween:Create(v,boom,boomprop) ew:Play() end end) end end end)
I tried making the balls explode when they either touched a player or the environment. But even though they haven't touched the ground yet they explode. Why is this?