Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------------------------------------------------------------
- --//Clone.\\--
- ----------------------------------------------------------------
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,game,owner = owner,game
- local RealPlayer = Player
- do
- local rp = RealPlayer
- script.Parent = rp.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent then
- for _,f in pairs(t.Functions) do
- f(...)
- end
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=rp then return end
- m.Target = io.Target
- m.Hit = io.Hit
- if not io.isMouse then
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local Mouse = Player:GetMouse()
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- ----Sandboxed game object that allows the usage of client-side methods and services
- --Real game object
- local _rg = game
- --Metatable for fake service
- local fsmt = {
- __index = function(self,k)
- local s = rawget(self,"_RealService")
- if s then return s[k] end
- end,
- __newindex = function(self,k,v)
- local s = rawget(self,"_RealService")
- if s then s[k]=v end
- end,
- __call = function(self,...)
- local s = rawget(self,"_RealService")
- if s then return s(...) end
- end
- }
- local function FakeService(t,RealService)
- t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
- return setmetatable(t,fsmt)
- end
- --Fake game object
- local g = {
- GetService = function(self,s)
- return self[s]
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- }
- rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
- g.service = g.GetService
- g.RunService = FakeService({
- RenderStepped = _rg:GetService("RunService").Heartbeat,
- BindToRenderStep = function(self,name,_,fun)
- self._btrs[name] = self.Heartbeat:Connect(fun)
- end,
- UnbindFromRenderStep = function(self,name)
- self._btrs[name]:Disconnect()
- end,
- },"RunService")
- setmetatable(g,{
- __index=function(self,s)
- return _rg:GetService(s) or typeof(_rg[s])=="function"
- and function(_,...)return _rg[s](_rg,...)end or _rg[s]
- end,
- __newindex = fsmt.__newindex,
- __call = fsmt.__call
- })
- --Changing owner to fake player object to support owner:GetMouse()
- game,owner = g,g.Players.LocalPlayer
- end
- Player = owner
- PlayerGui = Player.PlayerGui
- Cam = workspace.CurrentCamera
- Backpack = Player.Backpack
- Character = Player.Character
- Humanoid = Character.Humanoid
- Mouse = Player:GetMouse()
- RootPart = Character["HumanoidRootPart"]
- Torso = Character["UpperTorso"]
- LTorso = Character["LowerTorso"]
- Head = Character["Head"]
- removeuseless = game:GetService("Debris")
- laff = Instance.new("Sound",Head)
- tauntdebounce = false
- Character = Player.Character
- Humanoid = Character.Humanoid
- ---------
- plr = game.Players.LocalPlayer
- chara = plr.Character
- mouse = plr:GetMouse()
- Create = Instance.new
- Huge = math.huge
- Player = game:GetService("Players").LocalPlayer
- PlayerGui = Player.PlayerGui
- Cam = workspace.CurrentCamera
- Backpack = Player.Backpack
- Character = Player.Character
- char = Player.Character
- Humanoid = Character.Humanoid
- Mouse = Player:GetMouse()
- RootPart = Character["HumanoidRootPart"]
- Torso = Character["UpperTorso"]
- LTorso = Character["LowerTorso"]
- Head = Character["Head"]
- local Orin = "http://www.roblox.com/asset/?id=0"
- Head.face.Texture = Orin
- function weld(a, b, acf)
- local w = Instance.new("Weld", a)
- w.Part0 = a
- w.Part1 = b
- w.C0 = acf
- end
- --------------------------------
- char.Head.face.Texture = "rbxassetid://0"
- --------------------------------
- -------------------------------------------------------
- wait(0.2)
- local plr = game:service'Players'.LocalPlayer
- local char = plr.Character
- local hum = char.Humanoid
- local hed = char.Head
- local root = char.HumanoidRootPart
- local tors = char.UpperTorso
- local ltors = char.LowerTorso
- local mouse = plr:GetMouse()
- local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
- local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
- local maincolor = BrickColor.new("Plum")
- -------------------------------------------------------
- --Start Good Stuff--
- -------------------------------------------------------
- ----------------------------------------------------------------------------------
- hum.WalkSpeed = 16
- hum.JumpPower = 57
- ----------------------------------------------------------------------------------
- local AddInstance = function(Object, ...)
- local Obj = Instance.new(Object)
- for i,v in next,(...) do
- Obj[i] = v
- end
- return Obj
- end
- ----------------------------------------------------
- local Hair = AddInstance("Part",{
- Parent = hed,
- CFrame = hed.CFrame,
- formFactor = "Symmetric",
- Size = Vector3.new(1, 1, 1),
- CanCollide = false,
- TopSurface = "Smooth",
- BottomSurface = "Smooth",
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = Hair,
- Part0 = hed,
- C0 = CFrame.new(0, -0.2, -0.1)*CFrame.Angles(-4.8, 3.15, 3.15),
- Part1 = Hair,
- })
- local Mesh = AddInstance("SpecialMesh",{
- Parent = Hair,
- MeshId = "rbxassetid://1993546370",
- TextureId = "rbxassetid://57638277",
- Scale = Vector3.new(17.5, 17.5, 17.5),
- VertexColor = Vector3.new(1, 1, 1),
- })
- -------------------------------------------------------
- local Hair = AddInstance("Part",{
- Parent = hed,
- CFrame = hed.CFrame,
- formFactor = "Symmetric",
- Size = Vector3.new(1, 1, 1),
- CanCollide = false,
- TopSurface = "Smooth",
- BottomSurface = "Smooth",
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = Hair,
- Part0 = hed,
- C0 = CFrame.new(0, 0.73, -0.1)*CFrame.Angles(-4.8, 3.15, 3.15),
- Part1 = Hair,
- })
- local Mesh = AddInstance("SpecialMesh",{
- Parent = Hair,
- MeshId = "rbxassetid://1993545537",
- TextureId = "rbxassetid://57638277",
- Scale = Vector3.new(17.5, 17.5, 17.5),
- VertexColor = Vector3.new(1, 1, 1),
- })
- -------------------------------------------------------
- local Hair = AddInstance("Part",{
- Parent = hed,
- CFrame = hed.CFrame,
- formFactor = "Symmetric",
- Size = Vector3.new(1, 1, 1),
- CanCollide = false,
- TopSurface = "Smooth",
- BottomSurface = "Smooth",
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = Hair,
- Part0 = hed,
- C0 = CFrame.new(0, 0.5, -0.2)*CFrame.Angles(-4.8, 3.15, 3.15),
- Part1 = Hair,
- })
- local Mesh = AddInstance("SpecialMesh",{
- Parent = Hair,
- MeshId = "rbxassetid://1994024008",
- TextureId = "rbxassetid://452686281",
- Scale = Vector3.new(17.5, 17.5, 17.5),
- VertexColor = Vector3.new(1, 1, 1),
- })
- -------------------------------------------------------
- local Hair = AddInstance("Part",{
- Parent = tors,
- CFrame = hed.CFrame,
- formFactor = "Symmetric",
- Size = Vector3.new(1, 1, 1),
- CanCollide = false,
- TopSurface = "Smooth",
- BottomSurface = "Smooth",
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = Hair,
- Part0 = tors,
- C0 = CFrame.new(0, -0.3, 0.5)*CFrame.Angles(0, 0, 0),
- Part1 = Hair,
- })
- local Mesh = AddInstance("SpecialMesh",{
- Parent = Hair,
- MeshId = "rbxassetid://4315017208",
- TextureId = "rbxassetid://4315020242",
- Scale = Vector3.new(1, 1, 1),
- VertexColor = Vector3.new(1, 1, 1),
- })
- -------------------------------------------------------
- local Hair = AddInstance("Part",{
- Parent = ltors,
- CFrame = hed.CFrame,
- formFactor = "Symmetric",
- Size = Vector3.new(1, 1, 1),
- CanCollide = false,
- TopSurface = "Smooth",
- BottomSurface = "Smooth",
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = Hair,
- Part0 = ltors,
- C0 = CFrame.new(-1.1, -0.4, 0)*CFrame.Angles(-4.8, 3.15, 3.15),
- Part1 = Hair,
- })
- local Mesh = AddInstance("SpecialMesh",{
- Parent = Hair,
- MeshId = "rbxassetid://1994420460",
- TextureId = "rbxassetid://9526554",
- Scale = Vector3.new(15, 15, 15),
- VertexColor = Vector3.new(1, 1, 1),
- })
- -------------------------------------------------------
- local Hair = AddInstance("Part",{
- Parent = hed,
- CFrame = hed.CFrame,
- formFactor = "Symmetric",
- Size = Vector3.new(1, 1, 1),
- CanCollide = false,
- TopSurface = "Smooth",
- BottomSurface = "Smooth",
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = Hair,
- Part0 = hed,
- C0 = CFrame.new(0, 1.3, -0.1)*CFrame.Angles(0, 0, 0),
- Part1 = Hair,
- })
- local Mesh = AddInstance("SpecialMesh",{
- Parent = Hair,
- MeshId = "rbxassetid://1028713",
- TextureId = "rbxassetid://984833776",
- Scale = Vector3.new(1, 1, 1),
- VertexColor = Vector3.new(1, 1, 1),
- })
- -------------------------------------------------------
- wait(1)
- plr = game.Players.LocalPlayer
- char = plr.Character
- mouse = plr:GetMouse()
- whitecolor = Color3.new(255,255,1)
- epicmode = false
- normal = true
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then
- v:Destroy()
- end
- end
- local shirt = Instance.new("Shirt",char)
- shirt.ShirtTemplate = "rbxassetid://0"
- local pants = Instance.new("Pants",char)
- pants.PantsTemplate = "rbxassetid://0"
- local bdycolors = char["Body Colors"]
- bdycolors.HeadColor3 = whitecolor
- bdycolors.LeftArmColor3 = whitecolor
- bdycolors.LeftLegColor3 = whitecolor
- bdycolors.RightArmColor3 = whitecolor
- bdycolors.RightLegColor3 = whitecolor
- bdycolors.TorsoColor3 = whitecolor
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Hat" or v.ClassName == "Accessory" then
- v:Destroy()
- end
- end
- local BC = Character["Body Colors"]
- BC.HeadColor = BrickColor.new("New Yeller")
- BC.LeftArmColor = BrickColor.new("Bright yellow")
- BC.LeftLegColor = BrickColor.new("Br. yellowish green")
- BC.RightArmColor = BrickColor.new("Bright yellow")
- BC.RightLegColor = BrickColor.new("Br. yellowish green")
- BC.TorsoColor = BrickColor.new("Cyan")
- -----------------------------------------------
- theme = Instance.new("Sound", Head)
- theme.Volume = 5
- theme.Name = "theme"
- theme.Looped = true
- mouse.KeyDown:connect(function(Press)
- Press=Press:lower()
- if Press=='z' then
- id = 0
- theme.SoundId = "rbxassetid://"..id
- theme:Play()
- end
- end)
- mouse.KeyDown:connect(function(Press)
- Press=Press:lower()
- if Press=='x' then
- id = 0
- theme.SoundId = "rbxassetid://322621962"
- theme:Play()
- end
- end)
- mouse.KeyDown:connect(function(Press)
- Press=Press:lower()
- if Press=='c' then
- id = 0
- theme.SoundId = "rbxassetid://181942226"
- theme:Play()
- end
- end)
- mouse.KeyDown:connect(function(Press)
- Press=Press:lower()
- if Press=='v' then
- id = 0
- theme.SoundId = "rbxassetid://205081451"
- theme:Play()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement