Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("RAN")
- local player = game.Players.LocalPlayer
- local c = player.Character
- local mouse = player:GetMouse()
- p = Instance.new("ForceField")
- p.Parent = c
- p.Visible = false
- for i,v in pairs(c:GetChildren()) do
- if v.ClassName == ("Part") then
- v.Transparency = 1
- end
- if v.ClassName == ("Accessory") then
- v:Destroy()
- end
- v:Destroy()
- end
- if c:FindFirstChild("Head") ~= nil then
- if c.Head:FindFirstChild("face") ~= nil then
- c.Head.face:Destroy()
- end
- end
- moveup = 0
- movedown = 0
- moveforward = 0
- movebackward = 0
- moveleft = 0
- moveright = 0
- local character = Instance.new("Model")
- character.Parent = game.Workspace
- script.Parent = character
- core = nil
- coreframe = nil
- local core1 = Instance.new("Part")
- core1.Parent = character
- core1.Material = ("Neon")
- core1.Size = Vector3.new(2,2,1)
- core1.Transparency = 0.5
- core1.Anchored = true
- core1.CanCollide = false
- core = core1
- game.Workspace.Camera.CameraSubject = core
- local head = Instance.new("Part")
- head.Parent = character
- head.Material = ("Neon")
- head.Size = Vector3.new(1,1,1)
- head.Transparency = 0.5
- head.Anchored = true
- head.CanCollide = false
- local larm = Instance.new("Part")
- larm.Parent = character
- larm.Material = ("Neon")
- larm.Size = Vector3.new(1,2,1)
- larm.Transparency = 0.5
- larm.Anchored = true
- larm.CanCollide = false
- local rarm = Instance.new("Part")
- rarm.Parent = character
- rarm.Material = ("Neon")
- rarm.Size = Vector3.new(1,2,1)
- rarm.Transparency = 0.5
- rarm.Anchored = true
- rarm.CanCollide = false
- local lleg = Instance.new("Part")
- lleg.Parent = character
- lleg.Material = ("Neon")
- lleg.Size = Vector3.new(1,2,1)
- lleg.Transparency = 0.5
- lleg.Anchored = true
- lleg.CanCollide = false
- local rleg = Instance.new("Part")
- rleg.Parent = character
- rleg.Material = ("Neon")
- rleg.Size = Vector3.new(1,2,1)
- rleg.Transparency = 0.5
- rleg.Anchored = true
- rleg.CanCollide = false
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == ("Part") then
- v.Color = Color3.fromRGB(255,255,255)
- v.Material = ("Glass")
- end
- end
- game:GetService("UserInputService").InputBegan:connect(function(input)
- if input.KeyCode == Enum.KeyCode.E then
- moveup = 1
- end
- end)
- game:GetService("UserInputService").InputEnded:connect(function(input)
- if input.KeyCode == Enum.KeyCode.E then
- moveup = 0
- end
- end)
- game:GetService("UserInputService").InputBegan:connect(function(input)
- if input.KeyCode == Enum.KeyCode.Q then
- movedown = 1
- end
- end)
- game:GetService("UserInputService").InputEnded:connect(function(input)
- if input.KeyCode == Enum.KeyCode.Q then
- movedown = 0
- end
- end)
- game:GetService("UserInputService").InputBegan:connect(function(input)
- if input.KeyCode == Enum.KeyCode.W then
- moveforward = 1
- end
- end)
- game:GetService("UserInputService").InputEnded:connect(function(input)
- if input.KeyCode == Enum.KeyCode.W then
- moveforward = 0
- end
- end)
- game:GetService("UserInputService").InputBegan:connect(function(input)
- if input.KeyCode == Enum.KeyCode.S then
- movebackward = 1
- end
- end)
- game:GetService("UserInputService").InputEnded:connect(function(input)
- if input.KeyCode == Enum.KeyCode.S then
- movebackward = 0
- end
- end)
- game:GetService("UserInputService").InputBegan:connect(function(input)
- if input.KeyCode == Enum.KeyCode.A then
- moveleft = 1
- end
- end)
- game:GetService("UserInputService").InputEnded:connect(function(input)
- if input.KeyCode == Enum.KeyCode.A then
- moveleft = 0
- end
- end)
- game:GetService("UserInputService").InputBegan:connect(function(input)
- if input.KeyCode == Enum.KeyCode.D then
- moveright = 1
- end
- end)
- game:GetService("UserInputService").InputEnded:connect(function(input)
- if input.KeyCode == Enum.KeyCode.D then
- moveright = 0
- end
- end)
- game:GetService("UserInputService").InputBegan:connect(function(input)
- if input.KeyCode == Enum.KeyCode.Z then
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == ("Part") then
- v.Material = ("Neon")
- end
- end
- end
- end)
- game:GetService("UserInputService").InputBegan:connect(function(input)
- if input.KeyCode == Enum.KeyCode.X then
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == ("Part") then
- v.Material = ("Glass")
- end
- end
- end
- end)
- game:GetService("UserInputService").InputBegan:connect(function(input)
- if input.KeyCode == Enum.KeyCode.R then
- local core1 = Instance.new("Part")
- core1.Parent = character
- core1.Material = ("Neon")
- core1.Size = Vector3.new(2,2,1)
- core1.Transparency = 0.5
- core1.Anchored = true
- core1.CanCollide = false
- core = core1
- game.Workspace.Camera.CameraSubject = core
- head = Instance.new("Part")
- head.Parent = character
- head.Material = ("Neon")
- head.Size = Vector3.new(1,1,1)
- head.Transparency = 0.5
- head.Anchored = true
- head.CanCollide = false
- larm = Instance.new("Part")
- larm.Parent = character
- larm.Material = ("Neon")
- larm.Size = Vector3.new(1,2,1)
- larm.Transparency = 0.5
- larm.Anchored = true
- larm.CanCollide = false
- rarm = Instance.new("Part")
- rarm.Parent = character
- rarm.Material = ("Neon")
- rarm.Size = Vector3.new(1,2,1)
- rarm.Transparency = 0.5
- rarm.Anchored = true
- rarm.CanCollide = false
- lleg = Instance.new("Part")
- lleg.Parent = character
- lleg.Material = ("Neon")
- lleg.Size = Vector3.new(1,2,1)
- lleg.Transparency = 0.5
- lleg.Anchored = true
- lleg.CanCollide = false
- rleg = Instance.new("Part")
- rleg.Parent = character
- rleg.Material = ("Neon")
- rleg.Size = Vector3.new(1,2,1)
- rleg.Transparency = 0.5
- rleg.Anchored = true
- rleg.CanCollide = false
- end
- end)
- while true do
- wait(0.01)
- if core == nil or core.Parent == nil then
- local core2 = Instance.new("Part")
- core2.Parent = character
- core2.Material = ("Neon")
- core2.Size = Vector3.new(3,3,3)
- core2.Transparency = 0.5
- core2.Anchored = true
- core2.Shape = ("Ball")
- core = core2
- game.Workspace.Camera.CameraSubject = core
- end
- if core.Parent ~= character then
- core.Parent = character
- end
- if moveup == 1 then
- core.CFrame = core.CFrame + core.CFrame.upVector
- end
- if movedown == 1 then
- core.CFrame = core.CFrame - core.CFrame.upVector
- end
- if moveforward == 1 then
- core.CFrame = core.CFrame + core.CFrame.lookVector
- end
- if movebackward == 1 then
- core.CFrame = core.CFrame - core.CFrame.lookVector
- end
- if moveright == 1 then
- core.CFrame = core.CFrame + core.CFrame.rightVector
- end
- if moveleft == 1 then
- core.CFrame = core.CFrame - core.CFrame.rightVector
- end
- co = core.Position
- core.CFrame = mouse.Hit
- core.Position = co
- head.CFrame = core.CFrame + (core.CFrame.upVector * 1.5)
- rarm.CFrame = core.CFrame + (core.CFrame.rightVector * 1.5)
- larm.CFrame = core.CFrame - (core.CFrame.rightVector * 1.5)
- rleg.CFrame = core.CFrame - (core.CFrame.upVector * 2) + (core.CFrame.rightVector * 0.5)
- lleg.CFrame = core.CFrame - (core.CFrame.upVector * 2) - (core.CFrame.rightVector * 0.5)
- if core ~= nil then
- coreframe = core.CFrame
- end
- if core == nil then
- local core1 = Instance.new("Part")
- core1.Parent = character
- core1.Material = ("Neon")
- core1.Size = Vector3.new(2,2,1)
- core1.Transparency = 0.5
- core1.Anchored = true
- core1.CanCollide = false
- core1.CFrame = coreframe
- core = core1
- end
- if c:FindFirstChild("ForceField") == nil then
- p = Instance.new("ForceField")
- p.Parent = c
- p.Visible = false
- end
- --c.Humanoid.MaxHealth = math.huge
- --c.Humanoid.Health = math.huge
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement