Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- params : ...
- local p = game.Players.LocalPlayer
- local m = p:GetMouse()
- local d = game.ReplicatedStorage.DataHolder
- repeat
- repeat
- wait()
- until p.Character
- until p.Character:FindFirstChild("Humanoid")
- local h = p.Character.Humanoid
- wait(2)
- local energy = {
- Fire = {5}
- }
- local exp = {
- Fire = {25}
- }
- local equipped = false
- local antimagicequipped = false
- local antimagicvalue = 1
- local combatvalue = 1
- local a1 = game.ReplicatedStorage.Animations.FireballThrow
- local at1 = h:LoadAnimation(a1)
- local antimagicidle = h:LoadAnimation(game.ReplicatedStorage.Animations.AntiMagicIdle)
- local antimagicslash1 = h:LoadAnimation(game.ReplicatedStorage.Animations.AntiMagicSlash1)
- local antimagicslash2 = h:LoadAnimation(game.ReplicatedStorage.Animations.AntiMagicSlash2)
- local antimagicslash3 = h:LoadAnimation(game.ReplicatedStorage.Animations.AntiMagicSlash3)
- local punch1 = h:LoadAnimation(game.ReplicatedStorage.Animations.Punch1)
- local punch2 = h:LoadAnimation(game.ReplicatedStorage.Animations.Punch2)
- local punch3 = h:LoadAnimation(game.ReplicatedStorage.Animations.Punch3)
- local equipping = false
- local move1 = false
- local clicking = false
- local move1CD = 5
- local combatCD = 0.8
- Equip = function()
- if equipped == false then
- game.ReplicatedStorage.Events.EquipGrimoire:FireServer(equipped)
- equipped = true
- else
- if equipped == true then
- game.ReplicatedStorage.Events.EquipGrimoire:FireServer(equipped)
- equipped = false
- end
- end
- end
- Move1 = function()
- if p.UserId == 96144572 then
- at1:Play()
- local aim = m.Hit.p
- game.ReplicatedStorage.Events.BennySkill1:FireServer(aim)
- return
- end
- do
- if d[p.UserId].Data.Clover.Value == 3 then
- if d[p.UserId].Data.Type.Value == "Fire" then
- at1:Play()
- wait(0.4)
- local aim = m.Hit.p
- game.ReplicatedStorage.Events.Fireball:FireServer(aim)
- else
- do
- if d[p.UserId].Data.Type.Value == "Wind" then
- at1:Play()
- wait(0.4)
- local aim = m.Hit.p
- game.ReplicatedStorage.Events.WindSlash:FireServer(aim)
- else
- do
- if d[p.UserId].Data.Type.Value == "Dark" then
- at1:Play()
- wait(0.4)
- local aim = m.Hit.p
- game.ReplicatedStorage.Events.DarkBullet:FireServer(aim)
- else
- do
- if d[p.UserId].Data.Type.Value == "Light" then
- at1:Play()
- local aim = m.Hit.p
- game.ReplicatedStorage.Events.LightSpear:FireServer(aim)
- else
- do
- if d[p.UserId].Data.Type.Value == "Water" then
- for i = 1, 10 do
- local aim = m.Hit.p
- game.ReplicatedStorage.Events.WaterBullets:FireServer(aim)
- wait(0.25)
- end
- end
- do
- if d[p.UserId].Data.Clover.Value == 4 then
- if d[p.UserId].Data.Type.Value == "Light" then
- at1:Play()
- local aim = m.Hit.p
- game.ReplicatedStorage.Events.LightSpear2:FireServer(aim)
- else
- do
- if d[p.UserId].Data.Type.Value == "Fire" then
- at1:Play()
- wait(0.4)
- local aim = m.Hit.p
- game.ReplicatedStorage.Events.Fireball2:FireServer(aim)
- else
- do
- if d[p.UserId].Data.Type.Value == "Water" then
- for i = 1, 25 do
- local aim = m.Hit.p
- game.ReplicatedStorage.Events.WaterBullets:FireServer(aim)
- wait(0.1)
- end
- else
- do
- if d[p.UserId].Data.Type.Value == "Dark" then
- at1:Play()
- wait(0.4)
- local aim = m.Hit.p
- game.ReplicatedStorage.Events.DarkBullet2:FireServer(aim)
- else
- do
- if d[p.UserId].Data.Type.Value == "Wind" then
- at1:Play()
- wait(0.4)
- local aim = m.Hit.p
- game.ReplicatedStorage.Events.WindSlash2:FireServer(aim)
- end
- do
- if d[p.UserId].Data.Clover.Value == 5 and d[p.UserId].Data.Type.Value == "Anti Magic" then
- if antimagicequipped then
- antimagicidle:Stop()
- game.ReplicatedStorage.Events.AntiMagicEquip:FireServer(antimagicequipped)
- antimagicequipped = false
- else
- if not antimagicequipped then
- antimagicidle:Play()
- game.ReplicatedStorage.Events.AntiMagicEquip:FireServer(antimagicequipped)
- antimagicequipped = true
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- Hold = function()
- local enabled = true
- game.ReplicatedStorage.Events.GrimoireParticle:FireServer(enabled)
- end
- LetGo = function()
- local enabled = false
- game.ReplicatedStorage.Events.GrimoireParticle:FireServer(enabled)
- end
- h.Running:connect(function(s)
- if antimagicequipped then
- if s > 0 then
- antimagicidle:Stop()
- else
- antimagicidle:Play()
- end
- end
- end)
- m.Button1Down:connect(function()
- if antimagicequipped and not equipped and not clicking then
- clicking = true
- if antimagicvalue == 1 then
- antimagicvalue = 2
- antimagicslash1:Play()
- else
- if antimagicvalue == 2 then
- antimagicvalue = 3
- antimagicslash2:Play()
- else
- if antimagicvalue == 3 then
- antimagicvalue = 1
- antimagicslash3:Play()
- end
- end
- end
- game.ReplicatedStorage.Events.AntiMagicSlash:FireServer()
- wait(combatCD)
- clicking = false
- end
- if not antimagicequipped and not equipped and not clicking then
- clicking = true
- if combatvalue == 1 then
- combatvalue = 2
- punch1:Play()
- else
- if combatvalue == 2 then
- combatvalue = 3
- punch2:Play()
- else
- if combatvalue == 3 then
- combatvalue = 1
- punch3:Play()
- end
- end
- end
- game.ReplicatedStorage.Events.Combat:FireServer()
- wait(combatCD)
- clicking = false
- end
- end)
- m.KeyDown:connect(function(k)
- if k == "e" and not equipping then
- equipping = true
- Equip()
- wait(0.25)
- equipping = false
- end
- if k == "z" and equipped then
- Hold()
- end
- end)
- m.KeyUp:connect(function(k)
- if k == "z" and equipped then
- LetGo()
- if not move1 then
- move1 = true
- Move1()
- wait(move1CD)
- move1 = false
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement