I can see my attack effects(Air pressure) but i can't see other players attack effects?
Asked by
6 years ago Edited 6 years ago
Hi! i probably new in Studio, so i have many problems, like that. When i press Z, it's should do animation&effect, but i can see only mine, and i can't see effects of other players. The same thing with other players.
there is script:
repeat wait() until game.Players.LocalPlayer
repeat wait() until game.Players.LocalPlayer.Character
player = game.Players.LocalPlayer
mouse = player:GetMouse()
c = player.Character
anima = script:WaitForChild("Smash")
Enabled = true
mouse.KeyDown:connect(function(key)
05 | if not Enabled then return end |
09 | local AnimaStart = c.Humanoid:LoadAnimation(anima) |
13 | local q = Instance.new( "Part" , c) |
21 | q.BottomSurface = "Smooth" |
23 | q.TopSurface = "Smooth" |
29 | q.BrickColor = BrickColor.new( "Ghost grey" ) |
31 | q.Size = Vector 3. new( 5 , 5 , 25 ) |
33 | q.CFrame = c.Torso.CFrame *CFrame.new( 1.3 , 0 ,- 15 ) |
35 | local u = Instance.new( "SpecialMesh" ) |
43 | q.Size = q.Size +Vector 3. new( 3 , 3 , 5 ) |
45 | q.Transparency = q.Transparency + 0.1 |
46 | q.Size = q.Size +Vector 3. new( 3 , 3 , 5 ) |
48 | q.Transparency = q.Transparency + 0.1 |
49 | q.Size = q.Size +Vector 3. new( 3 , 3 , 5 ) |
51 | q.Transparency = q.Transparency + 0.1 |
52 | q.Size = q.Size +Vector 3. new( 7 , 7 , 10 ) |
end)