Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mouse = game.Players.LocalPlayer:GetMouse()
- local d = false
- --=================[Main]=================--
- local model = Instance.new("Model")
- model.Parent = script.Parent
- model.Name = "Grox Parts"
- local d = false
- wait(1)
- local shirt = script.Parent:FindFirstChild("Shirt")
- if shirt ~= nil then
- shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=13321208"
- else
- local s = Instance.new("Shirt")
- s.Parent = script.Parent
- s.ShirtTemplate = "http://www.roblox.com/asset/?id=13321208"
- end
- local pants = script.Parent:FindFirstChild("Pants")
- if pants ~= nil then
- pants.PantsTemplate = "http://www.roblox.com/asset/?id=13324322"
- else
- local p = Instance.new("Pants")
- p.Parent = script.Parent
- p.ShirtTemplate = "http://www.roblox.com/asset/?id=13324322"
- end
- local anim = Instance.new("Animation")
- anim.Parent = script.Parent
- anim.Name = "Punch"
- anim.AnimationId = "rbxassetid://1138955921"
- script.Parent.Humanoid.WalkSpeed = 22
- script.Parent.Humanoid.JumpPower = 70
- script.Parent.Humanoid.MaxHealth = 1000
- wait(1)
- script.Parent.Humanoid.Health = 1000
- function littledmg(hit)
- local h = hit.Parent:findFirstChildOfClass("Humanoid")
- if h.Parent ~= script.Parent and h ~= nil then
- h.Health = h.Health - math.random(1,5)
- end
- end
- function dmg(hit)
- local h = hit.Parent:findFirstChildOfClass("Humanoid")
- if h.Parent ~= script.Parent and h ~= nil then
- h.Health = h.Health - math.random(5,25)
- end
- end
- function bigdmg(hit)
- local h = hit.Parent:findFirstChildOfClass("Humanoid")
- if h.Parent ~= script.Parent and h ~= nil then
- h.Health = h.Health - math.random(10,50)
- end
- end
- function onehitkill(hit)
- local h = hit.Parent:findFirstChildOfClass("Humanoid")
- if h.Parent ~= script.Parent and h ~= nil then
- h.Health = 0
- end
- end
- function rifleshot()
- local targetPos = script.Parent.Humanoid.TargetPoint
- local lookAt = (targetPos - script.Parent.Head.Position).unit
- local bullet = Instance.new("Part")
- bullet.Touched:connect(dmg)
- bullet.Parent = game.Workspace
- bullet.Locked = true
- bullet.Name = "Laser bullet"
- bullet.Shape = Enum.PartType.Ball
- bullet.Size = Vector3.new(1,1,1)
- bullet.Material = Enum.Material.Neon
- bullet.BrickColor = BrickColor.new('Really red')
- bullet.CanCollide = false
- bullet.CFrame = script.Parent.Torso.CFrame
- bullet.Velocity = lookAt * 1000
- local a0 = Instance.new("Attachment")
- a0.Parent = bullet
- a0.Position = Vector3.new(0,.25,0)
- a0.Name = "Trail Attachment 0"
- local a1 = Instance.new("Attachment")
- a1.Parent = bullet
- a1.Position = Vector3.new(0,-.25,0)
- a1.Name = "Trail Attachment 1"
- local trail = Instance.new("Trail")
- trail.Parent = bullet
- trail.Attachment0 = a0
- trail.Attachment1 = a1
- trail.Transparency = NumberSequence.new(0,1)
- trail.Color = ColorSequence.new(Color3.new(255,0,0))
- trail.Lifetime = .1
- end
- function pistolshot()
- local targetPos = script.Parent.Humanoid.TargetPoint
- local lookAt = (targetPos - script.Parent.Head.Position).unit
- local bullet = Instance.new("Part")
- bullet.Touched:connect(littledmg)
- bullet.Parent = game.Workspace
- bullet.Locked = true
- bullet.Name = "Laser bullet"
- bullet.Shape = Enum.PartType.Ball
- bullet.Size = Vector3.new(.5,.5,.5)
- bullet.Material = Enum.Material.Neon
- bullet.BrickColor = BrickColor.new('Really red')
- bullet.CanCollide = false
- bullet.CFrame = script.Parent.Torso.CFrame
- bullet.Velocity = lookAt * 1000
- local a0 = Instance.new("Attachment")
- a0.Parent = bullet
- a0.Position = Vector3.new(0,.5,0)
- a0.Name = "Trail Attachment 0"
- local a1 = Instance.new("Attachment")
- a1.Parent = bullet
- a1.Position = Vector3.new(0,-.5,0)
- a1.Name = "Trail Attachment 1"
- local trail = Instance.new("Trail")
- trail.Parent = bullet
- trail.Attachment0 = a0
- trail.Attachment1 = a1
- trail.Transparency = NumberSequence.new(0,1)
- trail.Color = ColorSequence.new(Color3.new(255,0,0))
- trail.Lifetime = .1
- end
- function superrifleshot()
- local targetPos = script.Parent.Humanoid.TargetPoint
- local lookAt = (targetPos - script.Parent.Head.Position).unit
- local bullet = Instance.new("Part")
- bullet.Touched:connect(bigdmg)
- bullet.Parent = game.Workspace
- bullet.Locked = true
- bullet.Name = "Laser bullet"
- bullet.Shape = Enum.PartType.Ball
- bullet.Size = Vector3.new(.5,.5,2)
- bullet.Material = Enum.Material.Neon
- bullet.BrickColor = BrickColor.new('Royal purple')
- bullet.CanCollide = false
- bullet.CFrame = script.Parent.Torso.CFrame
- bullet.Velocity = lookAt * 1000
- local a0 = Instance.new("Attachment")
- a0.Parent = bullet
- a0.Position = Vector3.new(0,.5,0)
- a0.Name = "Trail Attachment 0"
- local a1 = Instance.new("Attachment")
- a1.Parent = bullet
- a1.Position = Vector3.new(0,-.5,0)
- a1.Name = "Trail Attachment 1"
- local trail = Instance.new("Trail")
- trail.Parent = bullet
- trail.Attachment0 = a0
- trail.Attachment1 = a1
- trail.Transparency = NumberSequence.new(0,1)
- trail.Color = ColorSequence.new(Color3.new(255,0,255))
- trail.Lifetime = .1
- end
- function bfgshot()
- local targetPos = script.Parent.Humanoid.TargetPoint
- local lookAt = (targetPos - script.Parent.Head.Position).unit
- local bullet = Instance.new("Part")
- bullet.Touched:connect(onehitkill)
- bullet.Parent = game.Workspace
- bullet.Locked = true
- bullet.Name = "Laser bullet"
- bullet.Shape = Enum.PartType.Ball
- bullet.Size = Vector3.new(2,2,2)
- bullet.Material = Enum.Material.Neon
- bullet.BrickColor = BrickColor.new('Lime green')
- bullet.CanCollide = false
- bullet.CFrame = script.Parent.Torso.CFrame
- bullet.Velocity = lookAt * 1000
- local a0 = Instance.new("Attachment")
- a0.Parent = bullet
- a0.Position = Vector3.new(0,1,0)
- a0.Name = "Trail Attachment 0"
- local a1 = Instance.new("Attachment")
- a1.Parent = bullet
- a1.Position = Vector3.new(0,-1,0)
- a1.Name = "Trail Attachment 1"
- local trail = Instance.new("Trail")
- trail.Parent = bullet
- trail.Attachment0 = a0
- trail.Attachment1 = a1
- trail.Transparency = NumberSequence.new(0,1)
- trail.Color = ColorSequence.new(Color3.new(0,255,0))
- trail.Lifetime = .1
- end
- --=================[EARS]=================--
- local ears = Instance.new("Part")
- ears.Parent = model
- ears.Size = Vector3.new(1,1,1)
- ears.BrickColor = BrickColor.new('Pastel brown')
- local ear_weld = Instance.new("Weld")
- ear_weld.Parent = ears
- ear_weld.Part0 = script.Parent.Head
- ear_weld.Part1 = ears
- local ears_mesh = Instance.new("SpecialMesh")
- ears_mesh.Parent = ears
- ears_mesh.MeshType = "FileMesh"
- ears_mesh.MeshId = "http://www.roblox.com/asset/?id=1374148"
- ears_mesh.Scale = Vector3.new(1,2,1)
- ears_mesh.Offset = Vector3.new(0,.8,0)
- --=================[WEAPONS]=================--
- local wep = Instance.new("Tool")
- wep.Parent = game.Players[script.Parent.Name].Backpack
- wep.Name = "Laser Gun"
- wep.GripPos = Vector3.new(0.4,-0.6,0.1)
- local wephandle = Instance.new("Part")
- wephandle.Parent = wep
- wephandle.Name = "Handle"
- wephandle.Size = Vector3.new(1,1,3)
- local wepmesh = Instance.new("SpecialMesh")
- wepmesh.Parent = wephandle
- wepmesh.Name = "Gun Mesh"
- wepmesh.MeshId = "http://www.roblox.com/asset/?id=193471371"
- wepmesh.TextureId = "http://www.roblox.com/asset/?id=1138993948"
- local wep2 = Instance.new("Tool")
- wep2.Parent = game.Players[script.Parent.Name].Backpack
- wep2.Name = "Laser Pistol"
- wep2.GripPos = Vector3.new(0.4,-0.6,0.1)
- local wephandle2 = Instance.new("Part")
- wephandle2.Parent = wep2
- wephandle2.Name = "Handle"
- wephandle2.Size = Vector3.new(0.5,1,1.5)
- local wepmesh2 = Instance.new("SpecialMesh")
- wepmesh2.Parent = wephandle2
- wepmesh2.Name = "Gun Mesh"
- wepmesh2.MeshId = "rbxassetid://634222143"
- wepmesh2.TextureId = "rbxassetid://634221905"
- wepmesh2.Scale = Vector3.new(1.5,1.5,1.5)
- local wep3 = Instance.new("Tool")
- wep3.Parent = game.Players[script.Parent.Name].Backpack
- wep3.Name = "Purple Laser Rifle"
- wep3.GripPos = Vector3.new(0,-0.4,0.9)
- local wephandle3 = Instance.new("Part")
- wephandle3.Parent = wep3
- wephandle3.Name = "Handle"
- wephandle3.Size = Vector3.new(0.75,1,3.5)
- local wepmesh3 = Instance.new("SpecialMesh")
- wepmesh3.Parent = wephandle3
- wepmesh3.Name = "Gun Mesh"
- wepmesh3.MeshId = "http://www.roblox.com/asset/?id=280037291"
- wepmesh3.TextureId = "http://www.roblox.com/asset/?id=280037426"
- local wep4 = Instance.new("Tool")
- wep4.Parent = game.Players[script.Parent.Name].Backpack
- wep4.Name = "BFG-9000"
- wep4.GripPos = Vector3.new(0,-0.6,1)
- local wephandle4 = Instance.new("Part")
- wephandle4.Parent = wep4
- wephandle4.Name = "Handle"
- wephandle4.Size = Vector3.new(1.2,1.15,3.15)
- local wepmesh4 = Instance.new("SpecialMesh")
- wepmesh4.Parent = wephandle4
- wepmesh4.Name = "Gun Mesh"
- wepmesh4.MeshId = "http://www.roblox.com/asset/?id=94296999"
- wepmesh4.TextureId = "rbxassetid://146111231"
- wepmesh4.Scale = Vector3.new(3,3,3)
- --=================[End of that things]=================--
- wep.Activated:connect(rifleshot)
- wep2.Activated:connect(pistolshot)
- wep3.Activated:connect(superrifleshot)
- wep4.Activated:connect(bfgshot)
- mouse.KeyDown:connect(function(key)
- key = key:lower()
- if key == "e" then
- local anim = script.Parent.Humanoid:LoadAnimation(anim)
- anim:play()
- end
- end)
- while true do
- wait(.1)
- script.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=24222023"
- script.Parent["Body Colors"].HeadColor = BrickColor.new('Dusty Rose')
- script.Parent["Body Colors"].LeftArmColor = BrickColor.new('Dusty Rose')
- script.Parent["Body Colors"].LeftLegColor = BrickColor.new('Dusty Rose')
- script.Parent["Body Colors"].RightArmColor = BrickColor.new('Dusty Rose')
- script.Parent["Body Colors"].RightLegColor = BrickColor.new('Dusty Rose')
- script.Parent["Body Colors"].TorsoColor = BrickColor.new('Dusty Rose')
- local hats = script.Parent:FindFirstChildOfClass("Accessory")
- hats.Parent = nil
- end
- -- Made by ZKiller467570 --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement