01 | script.Parent.OnServerEvent:Connect( function (plr) |
02 | local Slash = game.ReplicatedStorage.Slash 13. YSlash 3 :Clone() |
03 | Slash.Parent = workspace |
04 | Slash.CanCollide = false |
05 | Slash.Anchored = false |
06 | Slash.CFrame = plr.Character.HumanoidRootPart.CFrame * CFrame.new( 0 , 0 ,- 5 ) * CFrame.fromEulerAnglesXYZ( 1.8 , 0 , 0 ) |
07 | Slash.Touched:Connect( function (hit) |
08 | if hit.Parent:FindFirstChild( "Humanoid" ) and hit.Parent.Name ~ = plr.Name then |
09 | local Explosion = game.ReplicatedStorage.Slash 13. Booom 3 :Clone() |
10 | Explosion.Parent = workspace |
11 | Explosion.CFrame = Slash.CFrame |
12 | Explosion.CanCollide = false |
13 | Explosion.Anchored = true |
14 | Slash:Destroy() |
15 | script.Parent.Parent.Parent.Parent.Explosion 2 :Play() |
i need the bit in green to change to a particle-like explosion!
ive tried:
1 | Explosion:WaitForChild( "Attatchment" ):WaitForChild:( "StarSplash" ).Enabled = true |
2 | wait( 1 ) |
3 | Explosion:WaitForChild( "Attatchment" ):WaitForChild:( "StarSplash" ).Enabled = false |
4 | wait( 2 ) |
5 | Explosion:Destroy() |
ive also tried without the "WaitForChild" bit
Replace This:
1 | for i = 1 , 32 do |
2 | wait(. 05 ) |
3 | Explosion.Size = Explosion.Size + Vector 3. new( 2 , 2 , 2 ) |
4 | Explosion.Transparency = Explosion.Transparency + 0.05 |
5 | end |
6 | Explosion:Destroy() |
with this
1 | Explosion:WaitForChild( "StarSplash" ).Enabled = true |
2 | Explosion:WaitForChild( "Stars" ).Enabled = true |
3 | wait(. 5 ) |
4 | Explosion:WaitForChild( "StarSplash" ).Enabled = false |
5 | Explosion:WaitForChild( "Stars" ).Enabled = false |
6 | wait( 2 ) |
7 | Explosion:Destroy() |
I've managed to fix the glitch, all i had to do is get the Booom3 part from replicated storage, delete the attatchment, make Booom3 the smallest [0.05,0.05,0.05]
and put the particles in the booom3 insted of the attatchment
yes, i know i answered my own question, but i fixed it C: