Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local PureBlaster = ReplicatedStorage.Skills.Pure.PureBlaster.Remotes.PureBlaster
- local Meshes = script.Meshes
- local TweenService = game:GetService("TweenService")
- local Debris = game:GetService("Debris")
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local trainingm = require(game.ServerStorage.TrainingFiles.TrainingModule)
- local function pureBlasterF(player)
- if player.Character.HumanoidRootPart.Anchored == false then
- if not workspace:FindFirstChild(player.Name.." Blaster")then
- local MindDamage = player.Stats.Mind.Value.Value
- local MindSecondD = player.Stats.Mind.Value.Value * 0.10
- local damageSecond = false
- local n = math.floor(100 * 10)
- local BlasterP = Meshes:WaitForChild("BlasterP"):Clone()
- BlasterP.Touched:Connect(function(hit)
- if damageSecond == false then
- if hit.parent:FindFirstChild("Humanoid") then
- local Players = game.Players[hit.Parent.Name]
- if Players == player then
- print("tHE SAME")
- else
- local humanoidp = Players.Character:WaitForChild("Humanoid")
- if not humanoidp:FindFirstChild("pureHitF")then
- local pureHitF = Instance.new("BoolValue",humanoidp)
- pureHitF.Name = "pureHitF"
- humanoidp:TakeDamage(MindDamage)
- end
- end
- end
- else
- for _,p in pairs(Players:GetChildren()) do
- if p:FindFirstChild("pureHitF") then
- p.pureHitF:Destroy()
- end
- end
- end
- end)
- local damage = player.Stats.Mind.Value
- local usingSkill = Instance.new("BoolValue")
- usingSkill.Name = "usingSkill"
- usingSkill.Value = true
- usingSkill.Parent = player
- print("BLASTER ")
- local Character = player.Character
- local Humanoid = Character:WaitForChild("Humanoid")
- local HumanoidRP = Character:WaitForChild("HumanoidRootPart")
- wait(0.2)
- HumanoidRP.Anchored = true
- local Track = Humanoid:LoadAnimation(script.Animation)
- Track:Play()
- coroutine.wrap(function()
- wait(2)
- HumanoidRP.Anchored = false
- end)()
- --Hold
- local Folder = Instance.new("Folder",workspace)
- Folder.Name = player.Name.." Blaster"
- Folder.Parent = workspace
- Debris:AddItem(Folder,4.5)
- local PureB = Meshes:WaitForChild("PureB"):Clone()
- PureB.CFrame = Character:WaitForChild("LeftHand").CFrame
- PureB.Size = Vector3.new(2,2,2)
- PureB.Parent = Folder
- local PureB2 = Meshes:WaitForChild("PureB"):Clone()
- PureB2.CFrame = Character:WaitForChild("RightHand").CFrame
- PureB2.Size = Vector3.new(2,2,2)
- PureB2.Parent = Folder
- local weld = Instance.new("WeldConstraint")
- weld.Parent = Folder
- weld.Part0 = PureB
- weld.Part1 = Character:WaitForChild("LeftHand")
- local weld2 = Instance.new("WeldConstraint")
- weld2.Parent = Folder
- weld2.Part0 = PureB2
- weld2.Part1 = Character:WaitForChild("RightHand")
- Debris:AddItem(PureB,1.25)
- Debris:AddItem(PureB2,1.25)
- wait(0.75)
- local goal = {}
- goal.Size = PureB.Size + Vector3.new(9,0,0)
- local info = TweenInfo.new(0.2)
- local tween = TweenService:Create(PureB,info,goal)
- tween:Play()
- local goal = {}
- goal.Size = PureB2.Size + Vector3.new(9,0,0)
- local info = TweenInfo.new(0.2)
- local tween = TweenService:Create(PureB2,info,goal)
- tween:Play()
- if player:FindFirstChild("shield") then
- if player.shield.Value < 3 then
- player.shield.Value = player.Shield.Value + 1
- end
- else
- local shield = Instance.new("IntValue")
- shield.Name = "shield"
- shield.Value = 1
- shield.Parent = player
- end
- coroutine.wrap(function()
- print("Entrei no shield")
- while workspace:FindFirstChild(player.Name.." Blaster"):FindFirstChild("PureB") do
- print("Entrei no shield 2")
- wait(0.5)
- end
- print("Entrei no shield 3")
- player.shield.Value = player.shield.Value - 1
- if player:FindFirstChild("shield").Value == 0 then
- player.shield:Destroy()
- end
- end)()
- BlasterP.Parent = Folder
- BlasterP.CFrame = Character:WaitForChild("Head").CFrame * CFrame.new(0,3,-2)
- BlasterP.ParticleEmitter.Rate = n
- BlasterP.Orientation = BlasterP.Orientation + Vector3.new(0,-90,0)
- BlasterP.Size = Vector3.new(1,15,15)
- BlasterP.Anchored = true
- coroutine.wrap(function()
- while BlasterP.Parent do
- if damageSecond == true then
- for _, part in ipairs(BlasterP:GetTouchingParts()) do
- local characterP = part.Parent
- local humanoidP = characterP:FindFirstChild("Humanoid")
- if humanoidP ~= Humanoid then
- if humanoidP and not humanoidP:FindFirstChild("pureHit") then
- local pureHit = Instance.new("BoolValue",humanoidP)
- pureHit.Name = "pureHit"
- Debris:AddItem(pureHit,0.4)
- end
- end
- end
- end
- wait(0.5)
- end
- end)()
- local goal = {}
- goal.Size = BlasterP.Size + Vector3.new(100,0,0)
- goal.CFrame = BlasterP.CFrame * CFrame.new(-50,0,0)
- local info = TweenInfo.new(0.1)
- local tween = TweenService:Create(BlasterP,info,goal)
- tween:Play()
- damageSecond = true
- tween.Completed:Wait()
- print("TIME TO TRANSPARENCU")
- local transp = 0.1
- BlasterP.ParticleEmitter.EmissionDirection = Enum.NormalId.Front
- BlasterP.ParticleEmitter.Speed = NumberRange.new(3, 3)
- for count = 1,20,1 do
- BlasterP.ParticleEmitter.LightEmission = BlasterP.ParticleEmitter.LightEmission - 0.2
- BlasterP.ParticleEmitter.Transparency = NumberSequence.new(transp,transp)
- wait(0.1)
- transp = transp + 0.05
- end
- Debris:AddItem(usingSkill,1.0)
- end
- end
- end
- PureBlaster.OnServerEvent:Connect(pureBlasterF)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement