Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- print("FE Compatibility code V2 by Mokiros")
- local RealPlayer = RealPlayer
- script.Parent = RealPlayer.Character
- --Fake event to make stuff like Mouse.KeyDown work
- local Disconnect_Function = function(this)
- this[1].Functions[this[2]] = nil
- end
- local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
- local FakeEvent_Metatable = {__index={
- Connect = function(this,f)
- local i = tostring(math.random(0,10000))
- while this.Functions[i] do
- i = tostring(math.random(0,10000))
- end
- this.Functions[i] = f
- return setmetatable({this,i},Disconnect_Metatable)
- end
- }}
- FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
- local function fakeEvent()
- return setmetatable({Functions={}},FakeEvent_Metatable)
- end
- --Creating fake input objects with fake variables
- local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
- FakeMouse.keyUp = FakeMouse.KeyUp
- FakeMouse.keyDown = FakeMouse.KeyDown
- 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 TriggerEvent(self,ev,...)
- for _,f in pairs(self[ev].Functions) do
- f(...)
- end
- end
- FakeMouse.TriggerEvent = TriggerEvent
- UIS.TriggerEvent = TriggerEvent
- --Client communication
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=RealPlayer then return end
- FakeMouse.Target = io.Target
- FakeMouse.Hit = io.Hit
- if not io.isMouse then
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
- end
- if io.UserInputType == Enum.UserInputType.MouseButton2 then
- return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
- 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
- FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
- local Mouse = owner:GetMouse()
- local UIS = game:GetService("UserInputService")
- local input = function(io,RobloxHandled)
- if RobloxHandled 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 every second frame, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- local HB = game:GetService("RunService").Heartbeat
- while true 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
- --Wait 2 frames
- for i=1,2 do
- HB:Wait()
- end
- end]==],script)
- ----Sandboxed game object that allows the usage of client-side methods and services
- --Real game object
- local RealGame = game
- --Metatable for fake service
- local FakeService_Metatable = {
- __index = function(self,k)
- local s = rawget(self,"_RealService")
- if s then
- return typeof(s[k])=="function"
- and function(_,...)return s[k](s,...)end or s[k]
- end
- end,
- __newindex = function(self,k,v)
- local s = rawget(self,"_RealService")
- if s then s[k]=v end
- end
- }
- local function FakeService(t,RealService)
- t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
- return setmetatable(t,FakeService_Metatable)
- end
- --Fake game object
- local FakeGame = {
- GetService = function(self,s)
- return rawget(self,s) or RealGame:GetService(s)
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- RunService = FakeService({
- _btrs = {},
- RenderStepped = RealGame: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")
- }
- rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
- FakeGame.service = FakeGame.GetService
- FakeService(FakeGame,game)
- --Changing owner to fake player object to support owner:GetMouse()
- game,owner = FakeGame,FakeGame.Players.LocalPlayer
- end
- local plr = owner
- local mouse = plr:GetMouse()
- local char = plr.Character
- local hum = char.Humanoid
- local sine = 0
- --clerp stuff--
- Swait,swait = function(number)
- if number == 0 or number == nil then
- game:GetService("RunService").Heartbeat:Wait()
- else
- for i = 1,number do
- game:GetService("RunService").Heartbeat:Wait()
- end
- end
- end
- clerp = function(toclerp, cf, number)
- local joint = toclerp
- joint.C0 = joint.C0:Lerp(cf, number)
- end
- clerp2 = function(toclerp, cf)
- local joint = toclerp
- joint.C0 = cf
- end
- ---------------
- --functions--
- function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
- local NEWMESH = Instance.new(MESH)
- if MESH == "SpecialMesh" then
- NEWMESH.MeshType = MESHTYPE
- if MESHID ~= "nil" and MESHID ~= "" then
- NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
- end
- if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
- NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
- end
- end
- NEWMESH.Offset = OFFSET or Vector3.new(0, 0, 0)
- NEWMESH.Scale = SCALE
- NEWMESH.Parent = PARENT
- return NEWMESH
- end
- function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
- local NEWPART = Instance.new("Part")
- NEWPART.formFactor = FORMFACTOR
- NEWPART.Reflectance = REFLECTANCE
- NEWPART.Transparency = TRANSPARENCY
- NEWPART.CanCollide = false
- NEWPART.Locked = true
- NEWPART.Anchored = true
- if ANCHOR == false then
- NEWPART.Anchored = false
- end
- NEWPART.BrickColor = BrickColor.new(tostring(BRICKCOLOR))
- NEWPART.Name = NAME
- NEWPART.Size = SIZE
- NEWPART.Position = char.Torso.Position
- NEWPART.Material = MATERIAL
- NEWPART:BreakJoints()
- NEWPART.Parent = PARENT
- return NEWPART
- end
- local S = Instance.new("Sound")
- function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
- local NEWSOUND = nil
- coroutine.resume(coroutine.create(function()
- NEWSOUND = S:Clone()
- NEWSOUND.Parent = PARENT
- NEWSOUND.Volume = VOLUME
- NEWSOUND.Pitch = PITCH
- NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
- NEWSOUND:play()
- if DOESLOOP == true then
- NEWSOUND.Looped = true
- else
- repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
- NEWSOUND:remove()
- end
- end))
- return NEWSOUND
- end
- -------------
- Create,New = function(Type, ...)
- local Object = Instance.new(Type)
- for i,v in next,(...) do
- Object[i] = v
- end
- return Object
- end
- -----effects---------
- --[[
- local Weapon = Instance.new("Model")
- Weapon.Name = "Adds"
- Weapon.Parent = char
- local Effects = Instance.new("Folder", Weapon)
- Effects.Name = "Effects"
- --]]
- Effects = char
- IT = Instance.new
- CF = CFrame.new
- cf = CFrame.new
- VT = Vector3.new
- RAD = math.rad
- C3 = Color3.new
- UD2 = UDim2.new
- BRICKC = BrickColor.new
- ANGLES = CFrame.Angles
- angles = CFrame.Angles
- EULER = CFrame.fromEulerAnglesXYZ
- COS = math.cos
- ACOS = math.acos
- SIN = math.sin
- ASIN = math.asin
- ABS = math.abs
- MRANDOM = math.random
- FLOOR = math.floor
- MSH = nil
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Decal2 = Instance.new("Decal")
- Part3 = Instance.new("Part")
- SpecialMesh4 = Instance.new("SpecialMesh")
- Part5 = Instance.new("Part")
- SpecialMesh6 = Instance.new("SpecialMesh")
- Part7 = Instance.new("Part")
- SpecialMesh8 = Instance.new("SpecialMesh")
- Part9 = Instance.new("Part")
- SpecialMesh10 = Instance.new("SpecialMesh")
- Model0.Name = "owner"
- Model0.Parent = mas
- Part1.Name = "Head"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(147, 1.99999905, 86, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part1.Orientation = Vector3.new(0, 90, 0)
- Part1.Position = Vector3.new(147, 1.99999905, 86)
- Part1.Rotation = Vector3.new(0, 90, 0)
- Part1.Color = Color3.new(0.639216, 0.294118, 0.294118)
- Part1.Size = Vector3.new(2, 2, 2)
- Part1.Anchored = true
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Dusty Rose")
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Dusty Rose")
- Decal2.Name = "Smile"
- Decal2.Parent = Part1
- Decal2.Texture = "http://www.roblox.com/asset/?id=149118265"
- Decal2.Face = Enum.NormalId.Right
- Part3.Name = "Left Arm"
- Part3.Parent = Model0
- Part3.CFrame = CFrame.new(145.5, 1.99999905, 86, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part3.Orientation = Vector3.new(0, 90, 0)
- Part3.Position = Vector3.new(145.5, 1.99999905, 86)
- Part3.Rotation = Vector3.new(0, 90, 0)
- Part3.Color = Color3.new(0.639216, 0.294118, 0.294118)
- Part3.Size = Vector3.new(1, 1, 1)
- Part3.Anchored = true
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.BrickColor = BrickColor.new("Dusty Rose")
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.brickColor = BrickColor.new("Dusty Rose")
- SpecialMesh4.Parent = Part3
- SpecialMesh4.MeshType = Enum.MeshType.Brick
- Part5.Name = "Left Leg"
- Part5.Parent = Model0
- Part5.CFrame = CFrame.new(146.5, 0.499998987, 86, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part5.Orientation = Vector3.new(0, 90, 0)
- Part5.Position = Vector3.new(146.5, 0.499998987, 86)
- Part5.Rotation = Vector3.new(0, 90, 0)
- Part5.Color = Color3.new(0.458824, 0, 0)
- Part5.Size = Vector3.new(1, 1, 1)
- Part5.Anchored = true
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.BrickColor = BrickColor.new("Maroon")
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Part5.brickColor = BrickColor.new("Maroon")
- SpecialMesh6.Parent = Part5
- SpecialMesh6.MeshType = Enum.MeshType.Brick
- Part7.Name = "Right Leg"
- Part7.Parent = Model0
- Part7.CFrame = CFrame.new(147.5, 0.499998987, 86, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part7.Orientation = Vector3.new(0, 90, 0)
- Part7.Position = Vector3.new(147.5, 0.499998987, 86)
- Part7.Rotation = Vector3.new(0, 90, 0)
- Part7.Color = Color3.new(0.458824, 0, 0)
- Part7.Size = Vector3.new(1, 1, 1)
- Part7.Anchored = true
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.BrickColor = BrickColor.new("Maroon")
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part7.brickColor = BrickColor.new("Maroon")
- SpecialMesh8.Parent = Part7
- SpecialMesh8.MeshType = Enum.MeshType.Brick
- Part9.Name = "Right Arm"
- Part9.Parent = Model0
- Part9.CFrame = CFrame.new(148.5, 1.99999905, 86, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part9.Orientation = Vector3.new(0, 90, 0)
- Part9.Position = Vector3.new(148.5, 1.99999905, 86)
- Part9.Rotation = Vector3.new(0, 90, 0)
- Part9.Color = Color3.new(0.639216, 0.294118, 0.294118)
- Part9.Size = Vector3.new(1, 1, 1)
- Part9.Anchored = true
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.BrickColor = BrickColor.new("Dusty Rose")
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.brickColor = BrickColor.new("Dusty Rose")
- SpecialMesh10.Parent = Part9
- SpecialMesh10.MeshType = Enum.MeshType.Brick
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = char
- pcall(function() v:MakeJoints() end)
- end
- for i,v in pairs(Model0:GetChildren()) do
- v.Anchored = false
- v.CanCollide = false
- end
- for i,v in pairs(char:GetChildren()) do
- if v:IsA("Part") and v.Name ~= "HumanoidRootPart" and v.Name ~= "Torso" then
- v.Size = Vector3.new(0.000001, 0.0000001, 0.0000001)
- end
- if v:IsA("Part") then
- v.Transparency = 1
- end
- if v:IsA("Hat") or v:IsA("Accessory") then
- v:Destroy()
- end
- end
- char.Head.Transparency = 0.9
- char.Head.BrickColor = BrickColor.new("Institutional white")
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- ezweld = function(p, a, b, cf)
- local weld = Instance.new("Weld",p)
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = cf
- return weld
- end
- local root = char.HumanoidRootPart
- rootj = ezweld(char, Model0["Head"], char.HumanoidRootPart, CFrame.new(0, -0.75, 0) * CFrame.Angles(0, -77, 0))
- RS = ezweld(char, Model0["Right Arm"], char.HumanoidRootPart, CFrame.new(-1.5, -0.75, 0))
- LS = ezweld(char, Model0["Left Arm"], char.HumanoidRootPart, CFrame.new(1.5, -0.75, 0))
- RH = ezweld(char, Model0["Right Leg"], char.HumanoidRootPart, CFrame.new(-0.5, 0.75, 0))
- LH = ezweld(char, Model0["Left Leg"], char.HumanoidRootPart, CFrame.new(0.5, 0.75, 0))
- local RSnor = RS.C0
- local LSnor = LS.C0
- local RHnor = RH.C0
- local LHnor = LH.C0
- local rootjnor = rootj.C0
- local Anim = "Idle"
- Cos = math.cos
- local remote = Instance.new("RemoteEvent",char)
- remote.Name = "jumpremote"
- function djumpanim()
- attack = true
- local spinme = 0
- for i = 1,15 do
- Swait()
- spinme = spinme + 1
- clerp2(rootj, rootjnor * CFrame.Angles(spinme, 0, 0))
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(RH, RHnor * CFrame.new(0, 0, spinme) * CFrame.Angles(spinme, 0, 0), 0.15)
- clerp(LH, LHnor * CFrame.new(0, 0, spinme) * CFrame.Angles(spinme, 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(-0.5, 0, 0), 0.15)
- end
- attack = false
- end
- function a(e)
- if e == "djump" then
- djumpanim()
- end
- end
- local DoubleJump = NLS([[
- local players = game:GetService("Players")
- local UserInputService = game:GetService("UserInputService")
- local plr = players.LocalPlayer
- local mouse = plr:GetMouse()
- local character = plr.Character
- local remote = character.jumpremote
- local sprint = false
- local humanoid = character:WaitForChild("Humanoid")
- local doubleJumpEnabled = false
- humanoid.StateChanged:Connect(function(oldState, newState)
- if newState == Enum.HumanoidStateType.Jumping then
- if not doubleJumpEnabled then
- wait(.2)
- if humanoid:GetState() == Enum.HumanoidStateType.Freefall then
- doubleJumpEnabled = true
- end
- end
- elseif newState == Enum.HumanoidStateType.Landed then
- doubleJumpEnabled = false
- end
- end)
- UserInputService.InputBegan:Connect(function(inputObject)
- if inputObject.KeyCode == Enum.KeyCode.Space then
- if doubleJumpEnabled then
- if humanoid:GetState() ~= Enum.HumanoidStateType.Jumping then
- humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
- remote:FireServer("djump")
- spawn(function()
- doubleJumpEnabled = false
- end)
- end
- end
- end
- end)
- ]],char)
- remote.OnServerEvent:connect(function()
- a("djump")
- end)
- sprint = false
- rush = false
- local sphere = Instance.new("Part",char)
- sphere.CanCollide = false
- sphere.BrickColor = Model0["Left Leg"].BrickColor
- sphere.Size = Vector3.new(2.5, 1.5, 3.75)
- sphere.Transparency = 1
- local mesh = Instance.new("SpecialMesh",sphere)
- mesh.MeshType = "Sphere"
- local joint = ezweld(sphere, sphere, char["HumanoidRootPart"],CFrame.new(0, -0.75 + 1.15, 0))
- boost = Instance.new("Sound",sphere) boost.Volume = 5 boost.Looped = true boost.SoundId = "rbxassetid://924922553"
- spawn(function()
- while true do
- Swait()
- if sphere.Transparency == 0 then
- boost.Playing = true
- if boost.TimePosition > 6 then
- boost.TimePosition = 3.25
- end
- else
- boost.Playing = false
- boost.TimePosition = 0
- end
- end
- end)
- local ColorArray = {ColorSequenceKeypoint.new(0, Color3.new(255/255,0/255,0/255)),ColorSequenceKeypoint.new(1, Color3.new(255/255,0/255,0/255))}
- local att1 = Instance.new("Attachment", sphere)
- att1.Name = "att1"
- att1.Position = Vector3.new(1, 0.35, 0)
- local att2 = Instance.new("Attachment", sphere)
- att2.Name = "att2"
- att2.Position = Vector3.new(-1, -0.35, 0)
- local att3 = Instance.new("Attachment", sphere)
- att3.Name = "att3"
- att3.Position = Vector3.new(0, 1, 0)
- local att4 = Instance.new("Attachment", sphere)
- att4.Name = "att4"
- att4.Position = Vector3.new(0, -1, 0)
- local trailtop1 = Instance.new("Trail", sphere)
- trailtop1.Enabled = true
- trailtop1.Texture = "rbxassetid://16607923"
- trailtop1.Name = "toptrail"
- trailtop1.MinLength = 0
- trailtop1.Lifetime = 3
- trailtop1.Color = ColorSequence.new(ColorArray)
- trailtop1.Attachment0 = att1
- trailtop1.Attachment1 = att2
- trailtop1.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- local trailtop12 = Instance.new("Trail", sphere)
- trailtop12.Enabled = true
- trailtop12.Texture = "rbxassetid://16607923"
- trailtop12.Name = "toptrail"
- trailtop12.MinLength = 0
- trailtop12.Lifetime = 3
- trailtop12.Color = ColorSequence.new(ColorArray)
- trailtop12.Attachment0 = att1
- trailtop12.Attachment1 = att2
- trailtop12.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.5, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- for _,v in pairs (sphere:children()) do
- if v:IsA("Trail") then
- v.Enabled = false
- end
- end
- mouse.KeyDown:connect(function(key)
- key = key:lower()
- if key == "z" then
- sprint = true
- rush = false
- char.Humanoid.WalkSpeed = 30
- end
- if key == "x" then
- sprint = false
- rush = true
- char.Humanoid.WalkSpeed = 60
- end
- end)
- mouse.KeyUp:connect(function(key)
- key = key:lower()
- if key == "z" then
- sprint = false
- rush = false
- char.Humanoid.WalkSpeed = 16
- end
- if key == "x" then
- sprint = false
- rush = false
- char.Humanoid.WalkSpeed = 16
- end
- end)
- combo = 0
- beanost = "http://www.roblox.com/asset/?id=3601017200"
- attack = false
- slap = false
- function jab1()
- if combo == 0 and attack == false then
- combo = 1
- slap = true
- attack = true
- local hitter = Model0["Right Arm"].Touched:connect(function(hit)
- if hit.Parent ~= char and hit.Parent ~= Model0 then
- for _,v in pairs (hit.Parent:children()) do
- if v:IsA("Humanoid") then
- v.Health = v.Health - 10
- end
- end
- end
- end)
- for i = 1,16 do
- Swait()
- clerp(RS, RSnor * CFrame.new(0, 0, 0.75) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0, 0.25, 0), 0.15)
- end
- for i = 1,16 do
- Swait()
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0.25, 0, 0), 0.15)
- end
- hitter:disconnect()
- coroutine.resume(coroutine.create(function()
- wait(.5)
- combo = 0
- slap = false
- end))
- wait(.1)
- attack = false
- end
- end
- function jab2()
- if combo == 1 and attack == false then
- combo = 0
- slap = true
- attack = true
- local hitter = Model0["Right Arm"].Touched:connect(function(hit)
- if hit.Parent ~= char and hit.Parent ~= Model0 then
- for _,v in pairs (hit.Parent:children()) do
- if v:IsA("Humanoid") then
- v.Health = v.Health - 10
- end
- end
- end
- end)
- for i = 1,16 do
- Swait()
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LS, LSnor * CFrame.new(0, 0, 0.75) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0, -0.25, 0), 0.15)
- end
- for i = 1,16 do
- Swait()
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0.25, 0, 0), 0.15)
- end
- hitter:disconnect()
- coroutine.resume(coroutine.create(function()
- wait(.5)
- combo = 0
- slap = false
- end))
- wait(.1)
- attack = false
- end
- end
- HOLD = false
- function jabhold()
- attack = true
- HOLD = true
- sphere.Transparency = 1
- repeat
- Swait()
- local hitter1 = Model0["Right Arm"].Touched:connect(function(hit)
- if hit.Parent ~= char and hit.Parent ~= Model0 then
- for _,v in pairs (hit.Parent:children()) do
- if v:IsA("Humanoid") then
- v.Health = v.Health - 1
- end
- end
- end
- end)
- for i = 1,16 do
- Swait()
- clerp(RS, RSnor * CFrame.new(0, 0, 0.75) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0, 0.25, 0), 0.15)
- end
- for i = 1,16 do
- Swait()
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0.25, 0, 0), 0.15)
- end
- hitter1:disconnect()
- local hitter2 = Model0["Left Arm"].Touched:connect(function(hit)
- if hit.Parent ~= char and hit.Parent ~= Model0 then
- for _,v in pairs (hit.Parent:children()) do
- if v:IsA("Humanoid") then
- v.Health = v.Health - 1
- end
- end
- end
- end)
- for i = 1,16 do
- Swait()
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LS, LSnor * CFrame.new(0, 0, 0.75) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0, -0.25, 0), 0.15)
- end
- for i = 1,16 do
- Swait()
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0.25, 0, 0), 0.15)
- end
- hitter2:disconnect()
- until HOLD == false
- attack = false
- end
- function AddDecal(Parent,Face,Texture)
- local Decal = Instance.new("Decal",Parent)
- Decal.Face = Face
- Decal.Texture = Texture
- return Decal
- end
- function bean()
- attack = true
- local whatthe = Instance.new("Sound",Model0.Head) whatthe.SoundId = "rbxassetid://3617615126" whatthe.Volume = 10 whatthe:Play()
- for i = 1,25 do
- Swait()
- clerp(RS, RSnor * CFrame.new(0, -0.75, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LS, LSnor * CFrame.new(0, -0.75, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0, 0, 0), 0.15)
- end
- local beanos = Instance.new("Part",char)
- beanos.CanCollide = false
- beanos.Transparency = 1
- beanos.Anchored = true
- beanos.Size = Vector3.new(0.01, 2, 2)
- beanos.Orientation = Model0.Head.Orientation
- beanos.Position = Model0.Head.Position
- local texture = AddDecal(beanos,"Right",beanost)
- local texture2 = AddDecal(beanos,"Left",beanost)
- for i = 1,25 do
- Swait()
- beanos.Position = beanos.Position + Vector3.new(0, 0.1, 0)
- end
- for i = 1,25 do
- Swait()
- clerp(RS, RSnor * CFrame.new(0.25, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LS, LSnor * CFrame.new(0.25, 0, 0.5) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0, 0.5, 0), 0.15)
- end
- beanos:Destroy()
- whatthe:Destroy()
- attack = false
- end
- Debris = game:GetService("Debris")
- function egg()
- attack = true
- HOLD = true
- sphere.Transparency = 1
- local seggs = Instance.new("Sound",Model0["Head"]) seggs.SoundId = "rbxassetid://484205032" seggs.Volume = 10 seggs.Looped = true seggs:Play()
- repeat
- Swait()
- local eggs = Instance.new("Part",workspace)
- eggs.Size = Vector3.new(1, 1, 1)
- eggs.BrickColor = BrickColor.new("Institutional white")
- eggs.CFrame = CFrame.new(Model0["Right Arm"].Position, mouse.Hit.p)
- local bv = Instance.new("BodyVelocity",eggs)
- bv.Velocity = eggs.CFrame.lookVector * 50
- eggs.Touched:connect(function(hit)
- for _,v in pairs (hit.Parent:children()) do
- if v:IsA("Humanoid") and v.Parent ~= char then
- v.Health = v.Health - 2
- end
- end
- end)
- Debris:AddItem(eggs,7)
- Debris:AddItem(bv,0.25)
- for i = 1,16 do
- Swait()
- clerp(RS, RSnor * CFrame.new(0, -0.5, 0.75) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0, 0, 0), 0.15)
- end
- for i = 1,16 do
- Swait()
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0, 0, 0), 0.15)
- end
- local eggs = Instance.new("Part",workspace)
- eggs.Size = Vector3.new(1, 1, 1)
- eggs.BrickColor = BrickColor.new("Institutional white")
- eggs.CFrame = CFrame.new(Model0["Left Arm"].Position, mouse.Hit.p)
- local bv = Instance.new("BodyVelocity",eggs)
- bv.Velocity = eggs.CFrame.lookVector * 50
- eggs.Touched:connect(function(hit)
- for _,v in pairs (hit.Parent:children()) do
- if v:IsA("Humanoid") and v.Parent ~= char then
- v.Health = v.Health - 2
- end
- end
- end)
- Debris:AddItem(eggs,7)
- Debris:AddItem(bv,0.25)
- for i = 1,16 do
- Swait()
- clerp(RS, RSnor * CFrame.new(0, -0.5, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LS, LSnor * CFrame.new(0, 0, 0.75) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0, 0, 0), 0.15)
- end
- for i = 1,16 do
- Swait()
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0, 0, 0), 0.15)
- end
- until HOLD == false
- attack = false
- seggs:Destroy()
- end
- function sanic()
- local sawnecc = Instance.new("Sound",Model0.Head) sawnecc.SoundId = "rbxassetid://1239456107" sawnecc.Volume = 10 sawnecc.Looped = true sawnecc:Play()
- local spinme = 0
- attack = true
- HOLD = true
- repeat
- for i = 1,15 do
- Swait()
- spinme = spinme + 0.25
- clerp(rootj, rootjnor * CFrame.new(0, -1.25, 0), 0.15)
- clerp2(rootj, rootjnor * CFrame.Angles(0, 0, spinme))
- clerp(RS, RSnor * rootj.C0, 0.15)
- clerp(LS, RSnor * rootj.C0, 0.15)
- end
- until HOLD == false
- attack = false
- sawnecc:Destroy()
- end
- mouse.Button1Down:connect(function()
- if attack == false then
- jabhold()
- end
- end)
- mouse.Button1Up:connect(function()
- HOLD = false
- end)
- mouse.KeyDown:connect(function(key)
- key=key:lower()
- if key == "m" and attack == false then
- bean()
- end
- if key == "n" and attack == false then
- sanic()
- end
- if key == "e" and attack == false then
- egg()
- end
- end)
- mouse.KeyUp:connect(function(key)
- key=key:lower()
- if key == "n" then
- HOLD = false
- end
- if key == "e" then
- HOLD = false
- end
- end)
- while true do
- Swait()
- sine = sine + 1
- torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
- touchfloor = workspace:FindPartOnRay(Ray.new(char.HumanoidRootPart.CFrame.Position, ((CFrame.new(char.HumanoidRootPart.Position, char.HumanoidRootPart.Position - Vector3.new(0, 1, 0))).LookVector).Unit * 4), char)
- if torvel > 1 and touchfloor ~= nil then
- Anim = "Walk"
- elseif torvel > 2 and touchfloor ~= nil then
- Anim = "Run"
- elseif root.Velocity.magnitude < 50 and touchfloor ~= nil then
- Anim = "Idle"
- elseif 1 < root.Velocity.y and touchfloor == nil then
- Anim = "Jump"
- elseif -1 < root.Velocity.y and touchfloor == nil then
- Anim = "Fall"
- end
- if Anim == "Jump" and attack == false then
- sphere.Transparency = 1
- for _,v in pairs (sphere:children()) do
- if v:IsA("Trail") then
- v.Enabled = false
- end
- end
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(RH, RHnor * CFrame.new(0, 0, -1.25) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LH, LHnor * CFrame.new(0, -0.5, 1) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(-0.5, 0, 0), 0.15)
- end
- if Anim == "Fall" and attack == false then
- sphere.Transparency = 1
- for _,v in pairs (sphere:children()) do
- if v:IsA("Trail") then
- v.Enabled = false
- end
- end
- clerp(RS, RSnor * CFrame.new(0, 0, -0.25) * CFrame.Angles(0.5, 0, 0), 0.15)
- clerp(LS, LSnor * CFrame.new(0, 0, -0.25) * CFrame.Angles(0.5, 0, 0), 0.15)
- clerp(RH, RHnor * CFrame.new(0, -0.5, -0.75) * CFrame.Angles(0.5, 0, 0), 0.15)
- clerp(LH, LHnor * CFrame.new(0, -0.5, -0.75) * CFrame.Angles(0.5, 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(0.5, 0, 0), 0.15)
- end
- if Anim == "Idle" and attack == false then
- sphere.Transparency = 1
- for _,v in pairs (sphere:children()) do
- if v:IsA("Trail") then
- v.Enabled = false
- end
- end
- clerp(RS, RSnor * CFrame.new(0, 0 - 0.15 * Cos(sine / 7), 0 + 0.15 * Cos(sine / 7)) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LS, LSnor * CFrame.new(0, 0 - 0.15 * Cos(sine / 7), 0 + 0.15 * Cos(sine / 7)) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0, 0, 0), 0.15)
- end
- if Anim == "Walk" and attack == false and sprint == false and rush == false then
- sphere.Transparency = 1
- for _,v in pairs (sphere:children()) do
- if v:IsA("Trail") then
- v.Enabled = false
- end
- end
- clerp(RS, RSnor * CFrame.new(0, -0.5 + 0.05 * Cos(sine / 7), -0.25) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LS, LSnor * CFrame.new(0, -0.5 + 0.05 * Cos(sine / 7), -0.25) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(RH, RHnor * CFrame.new(0, -0.25 - 0.5 * Cos(sine / 3.5), 0 + 2.5 * Cos(sine / 3.5)) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LH, LHnor * CFrame.new(0, -0.25 - 0.5 * Cos(sine / 3.5), 0 - 2.5 * Cos(sine / 3.5)) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0, 0, 0), 0.15)
- end
- if Anim == "Walk" and attack == false and sprint == true and rush == false then
- sphere.Transparency = 1
- for _,v in pairs (sphere:children()) do
- if v:IsA("Trail") then
- v.Enabled = false
- end
- end
- clerp(RS, RSnor * CFrame.new(0, -0.5 + 0.05 * Cos(sine / 7), -0.25) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LS, LSnor * CFrame.new(0, -0.5 + 0.05 * Cos(sine / 7), -0.25) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(RH, RHnor * CFrame.new(0, -0.5 - 0.75 * Cos(sine / 2), 0 + 3.25 * Cos(sine / 2)) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LH, LHnor * CFrame.new(0, -0.5 - 0.75 * Cos(sine / 2), 0 - 3.25 * Cos(sine / 2)) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0.35, 0, 0), 0.15)
- end
- if Anim == "Walk" and attack == false and sprint == false and rush == true then
- sphere.Transparency = 0
- for _,v in pairs (sphere:children()) do
- if v:IsA("Trail") then
- v.Enabled = true
- end
- end
- clerp(RS, RSnor * CFrame.new(0, -0.5 + 0.05 * Cos(sine / 7), -0.25) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LS, LSnor * CFrame.new(0, -0.5 + 0.05 * Cos(sine / 7), -0.25) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(RH, RHnor * CFrame.new(0, -0.5 - 0.75 * Cos(sine / 2), 0 + 4.25 * Cos(sine / 0.25)) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LH, LHnor * CFrame.new(0, -0.5 - 0.75 * Cos(sine / 2), 0 - 4.25 * Cos(sine / 0.25)) * CFrame.Angles(0, 0, 0), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0.45, 0, 0), 0.15)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement