Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --FE Template
- if (game:GetService('RunService'):IsServer()) then return error('This script cannot be ran server-sided, please use hl/',0); end;
- local remote = NS ([=[
- --[[
- Mage script made by Fenrier.
- Made for an upcoming game I will be making. Don't expect it to be out anytime soon though.
- And hello hacker :D
- Have fun with my scripts by the way c:
- ]]
- Player = owner
- Character = Player.Character
- PlayerGui = Player.PlayerGui
- Backpack = Player.Backpack
- Torso = Character.Torso
- Head = Character.Head
- Humanoid = Character.Humanoid
- LeftArm = Character["Left Arm"]
- LeftLeg = Character["Left Leg"]
- RightArm = Character["Right Arm"]
- RightLeg = Character["Right Leg"]
- LS = Torso["Left Shoulder"]
- LH = Torso["Left Hip"]
- RS = Torso["Right Shoulder"]
- RH = Torso["Right Hip"]
- Neck = Torso.Neck
- it=Instance.new
- vt=Vector3.new
- cf=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- attack = false
- attacktype = 1
- damage = 5
- oridamage = 50
- attackdebounce = false
- ssdebounce=false
- MMouse=nil
- combo=0
- --player
- player = nil
- --save shoulders
- RSH, LSH = nil, nil
- --welds
- RW, LW = Instance.new("Weld"), Instance.new("Weld")
- RW.Name="Right Shoulder" LW.Name="Left Shoulder"
- mana = 400
- if Character:findFirstChild("Staff",true) ~= nil then
- Character:findFirstChild("Staff",true).Parent = nil
- end
- if Character:findFirstChild("Block",true) ~= nil then
- Character:findFirstChild("Block",true).Parent = nil
- end
- if Player.PlayerGui:findFirstChild("manaGUI",true) ~= nil then
- Player.PlayerGui:findFirstChild("manaGUI",true).Parent = nil
- end
- local fengui = Instance.new("GuiMain")
- fengui.Parent = Player.PlayerGui
- fengui.Name = "manaGUI"
- local fenframe = Instance.new("Frame")
- fenframe.Parent = fengui
- fenframe.BackgroundColor3 = Color3.new(255,255,255)
- fenframe.BackgroundTransparency = 1
- fenframe.BorderColor3 = Color3.new(17,17,17)
- fenframe.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
- local fentext = Instance.new("TextLabel")
- fentext.Parent = fenframe
- fentext.Text = "Energy("..mana..")"
- fentext.BackgroundTransparency = 1
- fentext.SizeConstraint = "RelativeXY"
- fentext.TextXAlignment = "Center"
- fentext.TextYAlignment = "Center"
- fentext.Position = UDim2.new(0,80,1,200)
- local fentext2 = Instance.new("TextLabel")
- fentext2.Parent = fenframe
- fentext2.Text = " "
- fentext2.BackgroundTransparency = 0
- fentext2.BackgroundColor3 = Color3.new(0,0,0)
- fentext2.SizeConstraint = "RelativeXY"
- fentext2.TextXAlignment = "Center"
- fentext2.TextYAlignment = "Center"
- fentext2.Position = UDim2.new(0,10,1,170)
- fentext2.Size = UDim2.new(2.79999995,0,0.210000306,0)
- local fentext3 = Instance.new("TextLabel")
- fentext3.Parent = fenframe
- fentext3.Text = " "
- fentext3.BackgroundTransparency = 0
- fentext3.BackgroundColor3 = Color3.new(1,1,0)
- fentext3.SizeConstraint = "RelativeXY"
- fentext3.TextXAlignment = "Center"
- fentext3.TextYAlignment = "Center"
- fentext3.Position = UDim2.new(0,10,1,170)
- fentext3.Size = UDim2.new(mana*0.007,0,0.400000006,0)
- function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
- local fp = it("Part")
- fp.formFactor = formfactor
- fp.Parent = parent
- fp.Reflectance = reflectance
- fp.Transparency = transparency
- fp.CanCollide = false
- fp.Locked=true
- fp.BrickColor = brickcolor
- fp.Name = name
- fp.Size = size
- fp.Position = Torso.Position
- fp.BottomSurface="Smooth"
- fp.TopSurface="Smooth"
- fp:BreakJoints()
- return fp
- end
- function mesh(Mesh,part,meshtype,meshid,offset,scale)
- local mesh = it(Mesh)
- mesh.Parent = part
- if Mesh=="SpecialMesh" then
- mesh.MeshType = meshtype
- mesh.MeshId = meshid
- end
- mesh.Offset=offset
- mesh.Scale=scale
- return mesh
- end
- function weld(parent,part0,part1,c0)
- local weld = it("Weld")
- weld.Parent = parent
- weld.Part0 = part0
- weld.Part1 = part1
- weld.C0 = c0
- return weld
- end
- local modelzorz = Instance.new("Model")
- modelzorz.Parent = Character
- modelzorz.Name = "Staff"
- local prt1=part(3,modelzorz,0,0,Torso.BrickColor,"Part1",vt(1,1,1))
- local prt2=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Part2",vt(0.5,5,0.5))
- local prt3=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part3",vt(0.55,0.5,0.55))
- local prt7=part(3,modelzorz,0,0.3,BrickColor.new("White"),"Part7",vt(1,1,1))
- local prt8b=part(3,modelzorz,0,1,BrickColor.new("Black"),"Skill Crystal Reference",vt(0.2,0.2,0.2))
- local prt8=part(3,modelzorz,0,0.5,BrickColor.new("Bright red"),"Skill Crystal 1",vt(1,1,1))
- local prt9b=part(3,modelzorz,0,1,BrickColor.new("Black"),"Skill Crystal Reference",vt(0.2,0.2,0.2))
- local prt9=part(3,modelzorz,0,0.5,BrickColor.new("Bright blue"),"Skill Crystal 2",vt(1,1,1))
- local prt10b=part(3,modelzorz,0,1,BrickColor.new("Black"),"Skill Crystal Reference",vt(0.2,0.2,0.2))
- local prt10=part(3,modelzorz,0,0.5,BrickColor.new("Bright green"),"Skill Crystal 3",vt(1,1,1))
- local prt11b=part(3,modelzorz,0,1,BrickColor.new("Black"),"Skill Crystal Reference",vt(0.2,0.2,0.2))
- local prt11=part(3,modelzorz,0,0.5,BrickColor.new("Black"),"Skill Crystal 4",vt(1,1,1))
- local prt12=part(3,modelzorz,0,0,BrickColor.new("Bright red"),"Part12",vt(0.6,0.5,0.6))
- local prt13=part(3,modelzorz,0,1,BrickColor.new("Black"),"Hitbox",vt(1,7,1))
- local msh1=mesh("SpecialMesh",prt1,"Head","",vt(0,0,0),vt(0.6,1.8,0.6))
- local msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(1,1,1))
- local msh3=mesh("SpecialMesh",prt3,"Head","",vt(0,0,0),vt(1,1,1))
- local msh7=mesh("SpecialMesh",prt7,"Sphere","",vt(0,0,0),vt(1,1,1))
- local msh8=mesh("SpecialMesh",prt8,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.3,0.5,0.3))
- local msh9=mesh("SpecialMesh",prt9,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.3,0.5,0.3))
- local msh10=mesh("SpecialMesh",prt10,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.3,0.5,0.3))
- local msh11=mesh("SpecialMesh",prt11,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.4,0.6,0.4))
- local msh12=mesh("SpecialMesh",prt12,"Head","",vt(0,0,0),vt(1,1,1))
- local wld1=weld(prt1,prt1,Torso,euler(0,0,0.5)*cf(0,0,-0.6))
- local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0,0))
- local wld3=weld(prt3,prt3,prt2,euler(0,0,0)*cf(0,-2.4,0))
- local wld7=weld(prt7,prt7,prt2,euler(0,0,0)*cf(0,-3.5,0))
- local wld8b=weld(prt8b,prt8b,prt7,euler(0,0,0)*cf(1,0,0))
- local wld8=weld(prt8,prt8,prt8b,euler(0,0,0)*cf(0,0,0))
- local wld9b=weld(prt9b,prt9b,prt7,euler(0,0,0)*cf(0,0,1))
- local wld9=weld(prt9,prt9,prt9b,euler(0,0,0)*cf(0,0,0))
- local wld10b=weld(prt10b,prt10b,prt7,euler(0,0,0)*cf(-1,0,0))
- local wld10=weld(prt10,prt10,prt10b,euler(0,0,0)*cf(0,0,0))
- local wld11b=weld(prt11b,prt11b,prt7,euler(0,0,0)*cf(0,0,-1))
- local wld11=weld(prt11,prt11,prt11b,euler(0,0,0)*cf(0,0,0))
- local wld12=weld(prt12,prt12,prt2,euler(0,0,0)*cf(0,2.4,0))
- local wld13=weld(prt13,prt13,prt1,euler(0,0,0)*cf(0,-0.5,0))
- coroutine.resume(coroutine.create(function()
- while true do
- wait()
- wld8b.C0=wld8b.C0*euler(0,0.05,0)
- wld9b.C0=wld9b.C0*euler(0,0.05,0)
- wld10b.C0=wld10b.C0*euler(0,0.05,0)
- wld11b.C0=wld11b.C0*euler(0,0.05,0)
- end
- end))
- for i=1,4 do
- if i==1 then
- numb=1
- numb2=-1.5
- numb3=0
- numb4=0
- elseif i==2 then
- numb=-1
- numb2=1.5
- elseif i==3 then
- numb=0
- numb2=0
- numb3=1
- numb4=-1.5
- elseif i==4 then
- numb3=-1
- numb4=1.5
- end
- local prt4=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part4",vt(0.2,0.8,0.2))
- local prt5=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part5",vt(0.2,0.2,0.2))
- local prt6=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part6",vt(0.2,0.8,0.2))
- local msh4=mesh("CylinderMesh",prt4,"","",vt(0,0,0),vt(1,1,1))
- local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(1,1,1))
- local msh6=mesh("CylinderMesh",prt6,"","",vt(0,0,0),vt(1,1,1))
- local wld4=weld(prt4,prt4,prt3,cf(0,-0.4,0)*euler(numb,0,numb3))
- local wld5=weld(prt5,prt5,prt4,cf(0,-0.4,0))
- local wld6=weld(prt6,prt6,prt5,cf(0,-0.4,0)*euler(numb2,0,numb4))
- end
- local bg = it("BodyGyro")
- bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
- bg.P = 20e+003
- bg.Parent = nil
- so = function(id,par,vol,pit)
- coroutine.resume(coroutine.create(function()
- local sou = Instance.new("Sound",par or workspace)
- sou.Volume=vol
- sou.Pitch=pit or 1
- sou.SoundId=id
- wait()
- sou:play()
- wait(6)
- sou:Remove()
- end))
- end
- function unequipweld()
- wld1.Part1=Torso
- wld1.C0=euler(0,0,0.5)*cf(0,0,-0.6)
- wld1.C1=euler(0,0,0)
- end
- function equipweld()
- wld1.Part1=RightArm
- wld1.C0=euler(1,0,0)*cf(0,1,0)
- end
- function hideanim()
- equipped=false
- wait(0.1)
- bg.Parent=nil
- unequipweld()
- end
- function equipanim()
- equipped=true
- wait(0.1)
- equipweld()
- RW.C0=cf(1.5, 0.5, 0) * euler(1,0,0)
- RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
- LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
- LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
- end
- function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
- return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- coroutine.resume(coroutine.create(function()
- for i=0,1,0.1 do
- wait()
- prt.CFrame=prt.CFrame
- prt.Transparency=i
- msh.Scale=msh.Scale+vt(x3,y3,z3)
- end
- prt.Parent=nil
- end))
- end
- function MagicCircle(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe*cf(x2,y2,z2)
- local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
- coroutine.resume(coroutine.create(function()
- for i=0,1,0.1 do
- wait()
- prt.CFrame=prt.CFrame
- prt.Transparency=i
- msh.Scale=msh.Scale+vt(x3,y3,z3)
- end
- prt.Parent=nil
- end))
- end
- function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe*cf(x2,y2,z2)
- local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
- coroutine.resume(coroutine.create(function()
- for i=0,1,0.03 do
- wait()
- prt.CFrame=prt.CFrame
- prt.Transparency=i
- msh.Scale=msh.Scale+vt(x3,y3,z3)
- end
- prt.Parent=nil
- end))
- end
- function SpecialEffect()
- local prt=part(3,workspace,1,0,BrickColor.new("White"),"Part",vt(1,1,1))
- prt.Anchored=true
- prt.CFrame=Torso.CFrame
- local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,0.2 do
- wait(0)
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(10,10,10)
- end
- prt.Parent=nil
- end),prt,msh)
- end
- Damagefunc1=function(hit,Damage,Knockback)
- if hit.Parent==nil then
- return
- end
- h=hit.Parent:FindFirstChild("Humanoid")
- if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
- if attackdebounce == false then
- attackdebounce = true
- coroutine.resume(coroutine.create(function()
- wait(0.2)
- attackdebounce = false
- end))
- Damage=Damage
- --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
- return
- end]]
- -- hs(hit,1.2)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=game.Players.LocalPlayer
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- Damage=Damage+math.random(0,10)
- -- h:TakeDamage(Damage)
- blocked=false
- block=hit.Parent:findFirstChild("Block")
- if block~=nil then
- print("herp")
- if block.Value>0 then
- blocked=true
- block.Value=block.Value-1
- print(block.Value)
- end
- end
- if blocked==false then
- -- h:TakeDamage(Damage)
- HitHealth=h.Health
- h.Health=h.Health-Damage
- if HitHealth~=h.Health and HitHealth~=0 and h.Health<=0 and h.Parent.Name~="Hologram" then
- print("gained spree")
- game.Players.LocalPlayer:FindFirstChild("leaderstats").Spree.Value=game.Players.LocalPlayer.leaderstats.Spree.Value+1
- end
- showDamage(hit.Parent,Damage,.5)
- else
- h:TakeDamage(1)
- showDamage(hit.Parent,1,.5)
- end
- so("http://roblox.com/asset/?id=10209583",hit,1,1)
- vp=Instance.new("BodyVelocity")
- vp.P=500
- vp.maxForce=Vector3.new(math.huge,0,math.huge)
- -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
- vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
- if Knockback>0 then
- vp.Parent=hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp,.25)
- game:GetService("Debris"):AddItem(r,.5)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=Player
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- CRIT=false
- hitDeb=true
- AttackPos=6
- end
- end
- end
- Damagefunc2=function(hit,Damage,Base)
- if attackdebounce == false then
- attackdebounce = true
- coroutine.resume(coroutine.create(function()
- wait(0.1)
- attackdebounce = false
- end))
- if hit.Parent==nil then
- return
- end
- CPlayer=Bin
- blocked=false
- h=hit.Parent:FindFirstChild("Humanoid")
- if h~=nil and hit.Parent:FindFirstChild("Torso")~=nil then
- Damage=Damage
- c=it("ObjectValue")
- c.Name="creator"
- c.Value=game.Players.LocalPlayer
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- -- print(c.Value)
- --[[ if math.random(0,99)+math.random()<=7.8 then
- CRIT=true
- Damage=Damage*2
- s=it("Sound")
- s.SoundId="http://www.roblox.com/asset/?id=2801263"
- s.Volume=1
- s.Pitch=2
- s.Parent=hit
- s.PlayOnRemove=true
- s.Parent=nil
- end]]
- Damage=Damage+math.random(0,10)
- -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
- blocked=false
- block=hit.Parent:findFirstChild("Block")
- if block~=nil then
- print("herp")
- if block.Value>0 then
- blocked=true
- block.Value=block.Value-3
- print(block.Value)
- end
- end
- if blocked==false then
- -- h:TakeDamage(Damage)
- h.Health=h.Health-Damage
- HitHealth=h.Health
- if HitHealth~=h.Health and HitHealth~=0 and h.Health<=0 and h.Parent.Name~="Hologram" then
- print("gained spree")
- game.Players.LocalPlayer:FindFirstChild("leaderstats").Spree.Value=game.Players.LocalPlayer.leaderstats.Spree.Value+1
- end
- showDamage(hit.Parent,Damage,.5)
- else
- h:TakeDamage(1)
- showDamage(hit.Parent,1,.5)
- end
- --if blocked==false then
- local angle = (hit.Position-(Base.Position+Vector3.new(0,0,0))).unit
- print(angle)
- --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
- rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- rl.Parent=hit
- coroutine.resume(coroutine.create(function(vel)
- wait(1)
- vel:Remove()
- end),rl)
- --end
- local bodyVelocity=Instance.new("BodyVelocity")
- bodyVelocity.velocity=angle*40+Vector3.new(0,0,0)
- bodyVelocity.P=5000
- bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
- bodyVelocity.Parent=hit
- coroutine.resume(coroutine.create(function(Vel)
- wait(0.7)
- Vel:Remove()
- end),bodyVelocity)
- c=it("ObjectValue")
- c.Name="creator"
- c.Value=Player
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- CRIT=false
- hitDeb=true
- AttackPos=6
- end
- end
- end
- freezeDamagefunc=function(hit,Damage,Knockback)
- if hit.Parent==nil then
- return
- end
- CPlayer=Bin
- h=hit.Parent:FindFirstChild("Humanoid")
- if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
- if attackdebounce == false then
- attackdebounce = true
- coroutine.resume(coroutine.create(function()
- wait(0.2)
- attackdebounce = false
- end))
- Damage=Damage
- --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
- return
- end]]
- -- hs(hit,1.2)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=game.Players.LocalPlayer
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- Damage=Damage+math.random(0,10)
- -- h:TakeDamage(Damage)
- blocked=false
- block=hit.Parent:findFirstChild("Block")
- if block~=nil then
- print("herp")
- if block.Value>0 then
- blocked=true
- block.Value=block.Value-1
- print(block.Value)
- end
- end
- if blocked==false then
- -- h:TakeDamage(Damage)
- h.Health=h.Health-Damage
- HitHealth=h.Health
- if HitHealth~=h.Health and HitHealth~=0 and h.Health<=0 and h.Parent.Name~="Hologram" then
- print("gained spree")
- game.Players.LocalPlayer:FindFirstChild("leaderstats").Spree.Value=game.Players.LocalPlayer.leaderstats.Spree.Value+1
- end
- showDamage(hit.Parent,Damage,.5)
- else
- h:TakeDamage(1)
- showDamage(hit.Parent,1,.5)
- end
- if math.random(1,1)==1 then
- BodPos=Instance.new("BodyPosition")
- BodPos.P=50000
- BodPos.D=1000
- BodPos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- BodPos.position=hit.Parent.Torso.Position
- BodPos.Parent=hit.Parent.Torso
- BodGy = it("BodyGyro")
- BodGy.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
- BodGy.P = 20e+003
- BodGy.Parent=hit.Parent.Torso
- BodGy.cframe = hit.Parent.Torso.CFrame
- showDamage(hit.Parent,"Freeze!",5)
- so("http://www.roblox.com/asset/?id=41763367",hit,1,2)
- for i=1,10 do
- local freezepart=part(3,hit.Parent,0.5,0.5,BrickColor.new("Bright blue"),"Ice Part",vt(math.random(2,3)+math.random(),math.random(2,3)+math.random(),math.random(2,3)+math.random()))
- freezepart.Anchored=true
- freezepart.CFrame=hit.Parent.Torso.CFrame*cf(math.random(-1,0)+math.random(),-2.5,math.random(-1,0)+math.random())*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- coroutine.resume(coroutine.create(function(Part)
- wait(5)
- Part.Anchored=false
- Part.Velocity=vt(math.random(-20,20),math.random(20,30),math.random(-20,20))
- wait(5)
- Part.Parent=nil
- end),freezepart)
- end
- coroutine.resume(coroutine.create(function(BodyPos,BodyGy,Hitted)
- wait(5)
- BodyPos.Parent=nil
- BodyGy.Parent=nil
- so("http://www.roblox.com/asset/?id=87015121",Hitted,1,2)
- end),BodPos,BodGy,hit)
- end
- vp=Instance.new("BodyVelocity")
- vp.P=500
- vp.maxForce=Vector3.new(math.huge,0,math.huge)
- -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
- vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
- if Knockback>0 then
- vp.Parent=hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp,.25)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=Player
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- CRIT=false
- hitDeb=true
- AttackPos=6
- end
- end
- end
- showDamage=function(Char,Dealt,du)
- m=Instance.new("Model")
- m.Name=tostring(Dealt)
- h=Instance.new("Humanoid")
- h.Health=0
- h.MaxHealth=0
- h.Parent=m
- c=Instance.new("Part")
- c.Transparency=0
- c.BrickColor=BrickColor:Red()
- if CRIT==true then
- c.BrickColor=BrickColor.new("Really red")
- end
- c.Name="Head"
- c.TopSurface=0
- c.BottomSurface=0
- c.formFactor="Plate"
- c.Size=Vector3.new(1,.4,1)
- ms=Instance.new("CylinderMesh")
- ms.Scale=Vector3.new(.8,.8,.8)
- if CRIT==true then
- ms.Scale=Vector3.new(1,1.25,1)
- end
- ms.Parent=c
- c.Reflectance=0
- Instance.new("BodyGyro").Parent=c
- c.Parent=m
- c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
- f=Instance.new("BodyPosition")
- f.P=2000
- f.D=100
- f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- f.position=c.Position+Vector3.new(0,3,0)
- f.Parent=c
- game:GetService("Debris"):AddItem(m,.5+du)
- c.CanCollide=false
- m.Parent=workspace
- c.CanCollide=false
- end
- function CrystalEffect(crystal)
- clone=crystal:Clone()
- crystal.Transparency=1
- clone.Parent=workspace
- clone.Anchored=false
- clone.CFrame=crystal.CFrame
- Mesh=clone.Mesh
- coroutine.resume(coroutine.create(function()
- for i=0.5,1,0.05 do
- wait()
- clone.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(0.3,0.3,0.3)
- end
- clone.Parent=nil
- end))
- end
- function ChangeBaseColor(Colorr)
- clonee=prt7:Clone()
- clonee.Parent=prt7.Parent
- clonee.BrickColor=BrickColor.new(Colorr)
- if clonee:findFirstChild("Mesh")~=nil then
- clonee.Mesh.Scale=vt(1.4,1.4,1.4)
- end
- clonewld=weld(clonee,clonee,prt7,cf(0,0,0))
- coroutine.resume(coroutine.create(function(Part)
- for i=1,0.2,-0.05 do
- wait()
- Part.Transparency=i
- end
- while attack==true do
- wait()
- end
- for i=0.2,1,0.05 do
- wait()
- Part.Transparency=i
- end
- Part.Parent=nil
- end),clonee)
- end
- function Explode()
- local basepart=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart",vt(1,1,1))
- basepart.Anchored=true
- basepart.CFrame=Torso.CFrame*cf(0,0,-20)
- MagicCircle(BrickColor.new("Bright red"),basepart.CFrame,1,1,1,0,0,0,10,10,10)
- MagicRing(BrickColor.new("Bright red"),basepart.CFrame*euler(1.57,0,0),1,1,1,0,0,0,3,3,3)
- b=Instance.new("Explosion")
- b.Parent=workspace
- b.Position=basepart.Position
- b.BlastRadius=10
- b.BlastPressure=0
- so("http://www.roblox.com/asset/?id=2101148",basepart,1,0.6)
- local c = game.Workspace:GetChildren()
- for i = 1, #c do
- local hum = c[i]:findFirstChild("Humanoid")
- if hum ~= nil and hum.Health ~= 0 then
- local head = c[i]:findFirstChild("Head")
- if head ~= nil then
- local targ = head.Position - basepart.Position
- local mag = targ.magnitude
- if mag <= 20 and c[i].Name ~= Player.Name then
- attackdebounce=false
- Damagefunc2(head,10,basepart)
- end
- end
- end
- end
- game:GetService("Debris"):AddItem(basepart,1)
- end
- function CreateIceSword(BaseCFrame)
- local basepart=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart",vt(1,1,1))
- so("http://www.roblox.com/asset/?id=32656754",basepart,0.5,1)
- basepart.Anchored=true
- game:GetService("Debris"):AddItem(basepart,0.2)
- local icepart=part(3,workspace,0.5,0.5,BrickColor.new("Bright blue"),"IceSword",vt(2,6,2))
- icepart.CanCollide=true
- icepart.Anchored=true
- local icemesh=mesh("SpecialMesh",icepart,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(4,10,4))
- basepart.CFrame=BaseCFrame
- icepart.CFrame=basepart.CFrame*cf(0,-10,0)
- local c = game.Workspace:GetChildren()
- for i = 1, #c do
- local hum = c[i]:findFirstChild("Humanoid")
- if hum ~= nil and hum.Health ~= 0 then
- local head = c[i]:findFirstChild("Head")
- if head ~= nil then
- local targ = head.Position - basepart.Position
- local mag = targ.magnitude
- if mag <= 5 and c[i].Name ~= Player.Name then
- attackdebounce=false
- freezeDamagefunc(head,10,10)
- end
- end
- end
- end
- coroutine.resume(coroutine.create(function(Part)
- for i=0,1,0.1 do
- wait()
- Part.CFrame=Part.CFrame*cf(0,0.8,0)
- end
- wait(1)
- Part.Parent=nil
- end),icepart)
- end
- function Rock()
- local rock=part(3,workspace,0,0,BrickColor.new("Bright green"),"Rock",vt(math.random(1,3)+math.random(),math.random(1,3)+math.random(),math.random(1,3)+math.random()))
- rock.Material="Slate"
- rock.Anchored=true
- rock.CanCollide=true
- rock.CFrame=Torso.CFrame*cf(math.random(-20,20),math.random(-15,-10)-math.random(),math.random(-20,20))
- coroutine.resume(coroutine.create(function(Part)
- for i=1,20 do
- wait()
- Part.CFrame=Part.CFrame*cf(0,1,0)
- end
- while rockthrow==false do
- wait()
- end
- Part.Anchored=false
- Part.Velocity=(Torso.CFrame.lookVector*90)+vt(math.random(-10,10),math.random(-10,10),math.random(-10,10))
- con1=Part.Touched:connect(function(hit)
- if hit.Parent:findFirstChild("Humanoid")~=nil and hit.Parent~=Character then
- Part.Parent=nil
- for i=1,math.random(2,5) do
- minirock=part(3,workspace,0,0,BrickColor.new("Bright green"),"Rock",vt(math.random(0,1)+math.random(),math.random(0,1)+math.random(),math.random(0,1)+math.random()))
- minirock.Material="Slate"
- minirock.CanCollide=true
- minirock.CFrame=Part.CFrame
- minirock.Velocity=vt(math.random(-40,40),math.random(-40,40),math.random(-40,40))
- game:GetService("Debris"):AddItem(minirock,5)
- end
- h=hit.Parent.Humanoid
- Damage=math.random(10,20)
- blocked=false
- block=hit.Parent:findFirstChild("Block")
- if block~=nil then
- print("herp")
- if block.Value>0 then
- blocked=true
- block.Value=block.Value-1
- print(block.Value)
- end
- end
- if blocked==false then
- -- h:TakeDamage(Damage)
- h.Health=h.Health-Damage
- HitHealth=h.Health
- if HitHealth~=h.Health and HitHealth~=0 and h.Health<=0 and h.Parent.Name~="Hologram" then
- print("gained spree")
- game.Players.LocalPlayer:FindFirstChild("leaderstats").Spree.Value=game.Players.LocalPlayer.leaderstats.Spree.Value+1
- end
- showDamage(hit.Parent,Damage,.5)
- else
- h:TakeDamage(1)
- showDamage(hit.Parent,1,.5)
- end
- vp=Instance.new("BodyVelocity")
- vp.P=500
- vp.maxForce=Vector3.new(math.huge,0,math.huge)
- vp.velocity=Torso.CFrame.lookVector*20+Torso.Velocity/1.05
- vp.Parent=hit.Parent.Torso
- rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(vp,.25)
- game:GetService("Debris"):AddItem(rl,.25)
- end
- end)
- game:GetService("Debris"):AddItem(Part,5)
- --[[wait(5)
- Part.Parent=nil]]
- end),rock)
- end
- function Lightning(p0,p1,tym,ofs,col,th,tra)
- local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
- for i=1,tym do
- local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = false li.Transparency = tra or 0.4 li.BrickColor = BrickColor.new(col)
- li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(th,th,magz/tym) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
- local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
- if tym == i then
- local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
- li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
- else
- li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
- end
- curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,0.25)
- end
- end
- DarkRiftF=function(par,DemMags)
- while rifting==true do
- wait()
- PWN={}
- for _,v in pairs(workspace:children()) do
- if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
- if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
- if v~=Character and (v.Torso.Position-par.Position).magnitude<=DemMags then
- table.insert(PWN,v.Torso)
- end
- end
- end
- end
- for _,t in pairs(PWN) do
- Mag=(par.Position-t.Position).magnitude/2
- t.Parent.Humanoid:TakeDamage(1)
- rl=it("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=vt(500000,500000,500000)*5000
- rl.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10
- rl.Parent=t
- game:GetService("Debris"):AddItem(rl,.1)
- if Mag<=2 then
- t.Parent.Humanoid:TakeDamage(.5)
- else
- vl=it("BodyVelocity")
- vl.P=3000
- vl.maxForce=vt(500000000,500000000,500000000)
- vl.velocity=(t.Position-par.Position).unit*-(70/(Mag))
- vl.Parent=t
- game:GetService("Debris"):AddItem(vl,.1)
- end
- end
- wait(.08)
- end
- end
- function thwack()
- attack=true
- for i=0,1,0.2 do
- wait()
- RW.C0=cf(1.5, 0.5, 0) * euler(1+2.5*i,0,0)
- end
- so("http://roblox.com/asset/?id=10209640",RightArm,1,1.1)
- con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,5,20) end)
- for i=0,1,0.2 do
- wait()
- wld1.C0=euler(1+1*i,0,0)*cf(0,1,0)
- RW.C0=cf(1.5, 0.5, 0) * euler(3.5-3*i,0,0)
- LW.C0=cf(-1.5, 0.5, 0) * euler(-0.5*i,0,-0.2)
- end
- con1:disconnect()
- attack=false
- end
- function Explosion()
- if mana < 100 then return end
- mana=mana-100
- --SpecialEffect()
- attack=true
- CrystalEffect(prt8)
- ChangeBaseColor("Bright red")
- for i=0,1,0.1 do
- wait()
- wld1.C0=euler(1+0.57*i,0,0)*cf(0,1,0)
- RW.C0=cf(1.5, 0.5, 0) * euler(1+2.5*i,0,0)
- end
- so("http://roblox.com/asset/?id=10209640",RightArm,1,1.1)
- for i=0,1,0.2 do
- wait()
- RW.C0=cf(1.5, 0.5, 0) * euler(3.5-4*i,0,0)
- if i==0.8 then
- print("KABOOM")
- Explode()
- end
- end
- wait(0.5)
- for i=0,1,0.1 do
- wait()
- wld1.C0=euler(1.57-0.57*i,0,0)*cf(0,1,0)
- RW.C0=cf(1.5, 0.5, 0) * euler(-0.5+1.5*i,0,0)
- end
- attack=false
- end
- function IceSword()
- if mana < 70 then return end
- mana=mana-70
- attack=true
- CrystalEffect(prt9)
- ChangeBaseColor("Bright blue")
- for i=0,1,0.1 do
- wait()
- wld1.C0=euler(1+0.57*i,0,0)*cf(0,1,0)
- RW.C0=cf(1.5, 0.5, 0) * euler(1-1.5*i,0,0)
- end
- for i=0,1,0.2 do
- wait()
- wld1.C0=euler(1.57+1*i,0,0)*cf(0,1,0)
- RW.C0=cf(1.5, 0.5, 0) * euler(-0.5+2*i,0,0)
- end
- numb=-10
- for i=1,5 do
- CreateIceSword(Torso.CFrame*cf(0,0,numb))
- CreateIceSword(Torso.CFrame*euler(0,0.5,0)*cf(0,0,numb))
- CreateIceSword(Torso.CFrame*euler(0,1,0)*cf(0,0,numb))
- CreateIceSword(Torso.CFrame*euler(0,-0.5,0)*cf(0,0,numb))
- CreateIceSword(Torso.CFrame*euler(0,-1,0)*cf(0,0,numb))
- numb=numb-10
- wait(0.2)
- end
- for i=0,1,0.1 do
- wait()
- wld1.C0=euler(2.57-1.57*i,0,0)*cf(0,1,0)
- RW.C0=cf(1.5, 0.5, 0) * euler(1.5-0.5*i,0,0)
- end
- attack=false
- end
- function RockSwarm()
- if mana < 80 then return end
- mana=mana-80
- attack=true
- rockthrow=false
- CrystalEffect(prt10)
- ChangeBaseColor("Bright green")
- for i=0,1,0.1 do
- wait()
- wld1.C0=euler(1+1.5*i,0,0)*cf(0,1,0)
- RW.C0=cf(1.5, 0.5, 0) * euler(1+1.5*i,0,0)
- end
- for i=1,15 do
- Rock()
- wait(0.1)
- end
- wait(0.5)
- for i=0,1,0.1 do
- wait()
- wld1.C0=euler(2.5-1*i,0,0)*cf(0,1,0)
- RW.C0=cf(1.5, 0.5, 0) * euler(2.5-2*i,0,0)
- end
- for i=0,1,0.2 do
- wait()
- wld1.C0=euler(1.5+1*i,0,0)*cf(0,1,0)
- RW.C0=cf(1.5, 0.5, 0) * euler(0.5+1*i,0,0)
- end
- rockthrow=true
- wait(1)
- for i=0,1,0.1 do
- wait()
- wld1.C0=euler(2.5-1.5*i,0,0)*cf(0,1,0)
- RW.C0=cf(1.5, 0.5, 0) * euler(1.5-0.5*i,0,0)
- end
- attack=false
- end
- function Void()
- if mana < 110 then return end
- mana=mana-110
- attack=true
- print("Mage SS initiated.")
- CrystalEffect(prt11)
- ChangeBaseColor("Black")
- local basepart=part(3,workspace,0,0.1,BrickColor.new("Black"),"BasePart",vt(1,1,1))
- local basemesh=mesh("SpecialMesh",basepart,"Sphere","",vt(0,0,0),vt(0,0,0))
- basepart.Anchored=true
- basepart.CFrame=Torso.CFrame*cf(0,0,-30)
- numb=0
- coroutine.resume(coroutine.create(function()
- for i=0,1,0.05 do
- wait()
- wld1.C0=euler(1+2*i,0,0)*cf(0,1,0)
- RW.C0=cf(1.5, 0.5, 0) * euler(1+0.5*i,0,0)
- end
- end))
- for i=1,60 do
- wait()
- basemesh.Scale=basemesh.Scale+vt(0.1,0.1,0.1)
- Lightning(prt7.Position,basepart.Position+vt(math.random(-numb,numb),math.random(-numb,numb),math.random(-numb,numb)),5,1,"Black",0.3,0.1)
- numb=numb+0.05
- end
- if Humanoid.Health==0 then
- basepart.Parent=nil
- return
- end
- for i=0,1,0.1 do
- wait()
- wld1.C0=euler(3,0,0)*cf(0,1,0)
- RW.C0=cf(1.5, 0.5, 0) * euler(1.5+1.5*i,0,0)
- end
- rifting=true
- coroutine.resume(coroutine.create(function(Part)
- coroutine.resume(coroutine.create(function(Partt)
- for i=1,300 do
- wait()
- MagicBlock(BrickColor.new("Black"),Partt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,0.2,10,0.2)
- MagicCircle(BrickColor.new("Black"),Partt.CFrame*cf(math.random(-50,50),-8,math.random(-50,50)),1,1,1,0,0,0,0.2,5,0.2)
- end
- rifting=false
- basepart.Parent=nil
- end),Part)
- DarkRiftF(Part,30)
- end),basepart)
- wait(1)
- for i=0,1,0.1 do
- wait()
- wld1.C0=euler(3-2*i,0,0)*cf(0,1,0)
- RW.C0=cf(1.5, 0.5, 0) * euler(3-2*i,0,0)
- end
- attack=false
- end
- function ob1d(mouse)
- if attack == true then return end
- hold=true
- repeat
- thwack()
- until hold==false
- coroutine.resume(coroutine.create(function()
- wait(0.5)
- if attack==false then
- combo=0
- wld1.C0=euler(1,0,0)*cf(0,1,0)
- RW.C0=cf(1.5, 0.5, 0) * euler(1,0,0)
- RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
- LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
- LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
- end
- end))
- end
- function ob1u(mouse)
- hold = false
- end
- buttonhold = false
- explosiondb=false
- icesworddb=false
- rockswarmdb=false
- voiddb=false
- function key(key)
- if attack == true then return end
- Humanoid.WalkSpeed=0
- if key=="z" and explosiondb==false then
- so("http://www.roblox.com/asset/?id=2101137",RightArm,1,1.5)
- explosiondb=true
- Explosion()
- coroutine.resume(coroutine.create(function()
- wait(5)
- explosiondb=false
- prt8.Transparency=0.5
- end))
- end
- if key=="x" and icesworddb==false then
- so("http://www.roblox.com/asset/?id=2101137",RightArm,1,1.3)
- icesworddb=true
- IceSword()
- coroutine.resume(coroutine.create(function()
- wait(10)
- icesworddb=false
- prt9.Transparency=0.5
- end))
- end
- if key=="c" and rockswarmdb==false then
- so("http://www.roblox.com/asset/?id=2101137",RightArm,1,1.3)
- rockswarmdb=true
- RockSwarm()
- coroutine.resume(coroutine.create(function()
- wait(15)
- rockswarmdb=false
- prt10.Transparency=0.5
- end))
- end
- if key=="v" and voiddb==false then
- so("http://www.roblox.com/asset/?id=2101137",RightArm,3,0.5)
- voiddb=true
- Void()
- coroutine.resume(coroutine.create(function()
- wait(30)
- voiddb=false
- prt11.Transparency=0.5
- end))
- end
- Humanoid.WalkSpeed=16
- end
- function key2(key)
- end
- function s()
- unsheathed = true
- player = Player
- ch = Character
- MMouse = mouse
- RSH = ch.Torso["Right Shoulder"]
- LSH = ch.Torso["Left Shoulder"]
- --
- RSH.Parent = nil
- LSH.Parent = nil
- --
- RW.Part0 = ch.Torso
- RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
- RW.C1 = CFrame.new(0, 0.5, 0)
- RW.Part1 = ch["Right Arm"]
- RW.Parent = ch.Torso
- --_G.R = RW
- --
- LW.Part0 = ch.Torso
- LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
- LW.C1 = CFrame.new(0, 0.5, 0)
- LW.Part1 = ch["Left Arm"]
- LW.Parent = ch.Torso
- --_G.L = LW
- --
- equipanim()
- end
- function ds()
- hideanim()
- wait(0)
- RW.Parent = nil
- LW.Parent = nil
- RSH.Parent = player.Character.Torso
- LSH.Parent = player.Character.Torso
- end
- coroutine.resume(coroutine.create(function()
- while true do
- wait(0)
- fentext3.Size = UDim2.new(mana*0.007,0,0.200000006,0)
- fentext.Text = "Mana("..mana..")"
- fentext3.BackgroundColor3 = Color3.new(1,1,1)
- end
- end))
- coroutine.resume(coroutine.create(function()
- while true do
- wait(0.1)
- if mana <= 0 and attack == false then
- attack = true
- while mana <= 400 do
- wait(0.1)
- mana = mana + 5
- end
- attack = false
- end
- if mana < 400 and attack == false then
- mana = mana + 2
- end
- end
- end))
- print("Staff loaded.")
- --[[
- Copyrighted (C) Fenrier 2013
- ]]
- remote = Instance.new 'RemoteFunction';
- remote.Parent = script;
- remote.OnServerInvoke = function (player, request, ...)
- if (player ~= owner) then
- return error ('You cannot invoke this remote', 0);
- end;
- if (request == 1) then
- ob1d(...)
- end
- if (request == 2) then
- local k = ...;
- key(k)
- end;
- if (request == 3) then
- ob1u(...)
- end
- if (request == 4) then
- s()
- end;
- if (request == 5) then
- ds()
- end;
- if (request == 6) then
- local k = ...;
- key2(k)
- end;
- end
- remote.Name = 'ServerRemote';
- function getMouseHit()
- return remote:InvokeClient (owner, 1);
- end;
- ]=], owner.Character):WaitForChild 'ServerRemote';
- local plr = game.Players.LocalPlayer
- local chr = plr.Character
- local mouse = plr:GetMouse()
- q = Instance.new('HopperBin', plr.Backpack)
- q.Name = 'Staff'
- Bin=q
- Bin.Selected:connect(function(mouse)
- remote:InvokeServer(4);
- mouse.Button1Down:connect(function()
- remote:InvokeServer (1,mouse);
- end)
- mouse.Button1Up:Connect(function()
- remote:InvokeServer (3,mouse);
- end)
- mouse.KeyDown:connect(function(k)
- k = k:lower()
- remote:InvokeServer (2, k);
- end)
- mouse.KeyUp:connect(function(k)
- k = k:lower()
- remote:InvokeServer (6, k);
- end)
- end)
- Bin.Deselected:Connect(function()
- remote:InvokeServer(5);
- end)
- remote.OnClientInvoke = function (request, ...)
- if (request == 1) then
- return mouse.Hit.p;
- end;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement