Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local players = {
- "UniversalGravity",
- }
- local plr = game.Players.LocalPlayer
- for _,v in pairs(players) do
- if plr.Name==v then
- able=true
- break
- end
- end
- wait(3)
- animation = Instance.new("Animation", game.Players.UniversalGravity.Character)
- animation.AnimationId = "http://www.roblox.com/Asset?ID=454535529"
- animTrack = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(animation)
- urs = game:GetService("UserInputService")
- titon = game.Lighting["Titan (18m Meter)"]
- titan = titon:Clone()
- titan.Parent = game.Workspace
- wait()
- titan.Parent = game.Lighting
- debounce2 = true
- x = 0
- y = 0
- z = 0
- alt = true
- animation4 = Instance.new("Animation", titan)
- animation4.Name = "RP"
- animation4.AnimationId = "http://www.roblox.com/Asset?ID=454669571"
- animTrack4 = titan.Humanoid:LoadAnimation(animation4)
- animation3 = Instance.new("Animation", titan)
- animation3.Name = "LP"
- animation3.AnimationId = "http://www.roblox.com/Asset?ID=454655143"
- animTrack3 = titan.Humanoid:LoadAnimation(animation3)
- fire = game.Lighting.fire:Clone()
- fire.Parent = game.Players.LocalPlayer.Character.Torso
- debounce = true
- controls = false
- enabled = true
- x2 = false
- limbs = {
- titan.Head,
- titan["Left Arm"],
- titan["Left Leg"],
- titan["Right Arm"],
- titan["Right Leg"],
- titan.Torso
- }
- animation2 = titan.walking
- animTrack2 = titan.Humanoid:LoadAnimation(animation2)
- game.Players.LocalPlayer.Character.Humanoid.Died:connect(function()
- script:Remove()
- titan:Remove()
- end)
- titan.Humanoid.Died:connect(function()
- script:Remove()
- titan:Remove()
- game.Players.LocalPlayer.Character.Humanoid.Health = 20
- end)
- urs.InputBegan:connect(function(i,enter)
- if i.KeyCode == Enum.KeyCode.C and enter == false then
- if controls == true then
- if debounce2 == true then
- debounce2 = false
- if alt == true then
- print("LEFT")
- titan.Humanoid.WalkSpeed = 16
- animTrack3:Play()
- wait(1)
- animTrack3:Stop()
- titan.Humanoid.WalkSpeed = 16
- alt = false
- debounce2 = true
- return nil
- elseif alt == false then
- print("RIGHT")
- titan.Humanoid.WalkSpeed = 16
- animTrack4:Play()
- wait(1)
- animTrack4:Stop()
- titan.Humanoid.WalkSpeed = 16
- alt = true
- debounce2 = true
- return nil
- end
- end
- end
- end
- end)
- urs.InputBegan:connect(function(i,enter)
- if i.KeyCode == Enum.KeyCode.V and enter == false then
- if x2 == false then
- x2 = true
- fire.Enabled = true
- game.Players.LocalPlayer.Character.Humanoid.Health = game.Players.LocalPlayer.Character.Humanoid.Health + 15
- wait(1.6)
- x2 = false
- fire.Enabled = false
- end
- end
- end)
- urs.InputBegan:connect(function(i,enter)
- if i.KeyCode == Enum.KeyCode.P and enter == false then
- if debounce == true then
- debounce = false
- if enabled == true then
- titan.Humanoid.MaxHealth = 1000
- titan.Humanoid.Health = 1000
- animTrack:Play()
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 4
- local prtcl = game.Lighting.Shifting:Clone()
- wait(1.2)
- game.Lighting.Ambient = game.Lighting.TitanS.Value
- prtcl.Parent = game.Workspace
- prtcl.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
- wait(5)
- prtcl:Remove()
- game.Lighting.Ambient = game.Lighting.Norm.Value
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
- controls = true
- titan.Parent = game.Workspace
- titan["Right Leg"].CFrame = game.Players.LocalPlayer.Character.Head.CFrame
- local cam = game.Workspace.CurrentCamera
- cam.CameraSubject = titan.Head
- enabled = false
- game.Players.LocalPlayer.Character.Head.CFrame = CFrame.new(0, 1000000, 0)
- game.Players.LocalPlayer.Character.Torso.Anchored = true
- for i,v in ipairs(limbs) do
- v.fire.Enabled = true
- end
- wait(5)
- for i,v in ipairs(limbs) do
- v.fire.Enabled = false
- end
- debounce = true
- elseif enabled == false then
- controls = false
- x = 0
- y = 0
- z = 0
- titan.Humanoid:Move(Vector3.new(x, y, z), true)
- local cam = game.Workspace.CurrentCamera
- enabled = true
- game.Players.LocalPlayer.Character.Torso.Anchored = false
- cam.CameraSubject = game.Players.LocalPlayer.Character.Head
- game.Players.LocalPlayer.Character.Head.CFrame = titan.Head.CFrame * CFrame.new(0, 0, 5)
- for i,v in ipairs(limbs) do
- v.fire.Enabled = true
- end
- wait(1)
- for i,v in ipairs(limbs) do
- v.BrickColor = BrickColor.new("Really black")
- end
- wait(5)
- for i,v in ipairs(limbs) do
- v.fire.Enabled = false
- v.BrickColor = BrickColor.new("Pastel brown")
- end
- titan.Parent = game.Lighting
- debounce = true
- end
- end
- end
- end)
- urs.InputBegan:connect(function(i,enter)
- if controls == true then
- if i.KeyCode == Enum.KeyCode.A and enter == false then
- x = -100
- animTrack2:Play()
- end
- titan.Humanoid:Move(Vector3.new(x, y, z), true)
- end
- end)
- urs.InputBegan:connect(function(i,enter)
- if controls == true then
- if i.KeyCode == Enum.KeyCode.W and enter == false then
- z = -100
- animTrack2:Play()
- end
- titan.Humanoid:Move(Vector3.new(x, y, z), true)
- end
- end)
- urs.InputBegan:connect(function(i,enter)
- if controls == true then
- if i.KeyCode == Enum.KeyCode.D and enter == false then
- x = 100
- animTrack2:Play()
- end
- titan.Humanoid:Move(Vector3.new(x, y, z), true)
- end
- end)
- urs.InputBegan:connect(function(i,enter)
- if controls == true then
- if i.KeyCode == Enum.KeyCode.S and enter == false then
- z = 100
- animTrack2:Play()
- end
- titan.Humanoid:Move(Vector3.new(x, y, z), true)
- end
- end)
- --urs.InputBegan:connect(function(i,enter) -- NOTE: REMOVE THE --'s IN ORDER TO HAVE TITAN JUMPING: CONTROL IS SPACEBAR
- -- if controls == true then
- -- if i.KeyCode == Enum.KeyCode.Space and enter == false then
- -- titan.Humanoid.Jump = true
- -- end
- -- titan.Humanoid:Move(Vector3.new(x, y, z), true)
- -- end
- --end)
- urs.InputEnded:connect(function(i,enter)
- if controls == true then
- if i.KeyCode == Enum.KeyCode.D and enter == false then
- if x == -100 then
- print("Nope")
- else
- x = 0
- end
- end
- if i.KeyCode == Enum.KeyCode.A and enter == false then
- if x == 100 then
- print("Nope")
- else
- x = 0
- end
- end
- if i.KeyCode == Enum.KeyCode.W and enter == false then
- if z == 100 then
- print("Nope")
- else
- animTrack2:Stop()
- z = 0
- end
- end
- if i.KeyCode == Enum.KeyCode.S and enter == false then
- if z == -100 then
- print("Nope")
- else
- animTrack2:Stop()
- z = 0
- end
- end
- titan.Humanoid:Move(Vector3.new(x, y, z), true)
- end
- end)
- debounce4 = true
- --titan["Left Arm"].Touched:connect(function(part)
- --if debounce4 == true then
- --debounce4 = false
- --print("TOUCHED")
- --if part.Parent.Name == game.Players.LocalPlayer.Name then
- --print("No")
- --else
- --if part.Parent:FindFirstChild("Humanoid") then
- --print("TAKE THIS SCRUB")
- --part.Parent.Humanoid.Health = part.Parent.Humanoid.Health - 0
- --wait(1)
- --debounce4 = true
- --end
- --end
- --end
- --end)
- --debounce5 = true
- --titan["Right Arm"].Touched:connect(function(part)
- --if debounce5 == true then
- --debounce5 = false
- --print("TOUCHED")
- --if part.Parent.Name == game.Players.LocalPlayer.Name then
- --print("No")
- --else
- --if part.Parent:FindFirstChild("Humanoid") then
- --print("TAKE THIS SCRUB")
- --part.Parent.Humanoid.Health = part.Parent.Humanoid.Health - 10
- --wait(1)
- --debounce5 = true
- --end
- --end
- --end
- --end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement