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
- plr = owner
- mouse = plr:GetMouse()
- char = plr.Character
- ra = char["Right Arm"]
- la = char["Left Arm"]
- rl = char["Right Leg"]
- ll = char["Left Leg"]
- local hum = char.Humanoid
- local RS = char.Torso["Right Shoulder"]
- local LS = char.Torso["Left Shoulder"]
- local RH = char.Torso["Right Hip"]
- local LH = char.Torso["Left Hip"]
- local neck = char.Torso["Neck"]
- local anim = char.Animate
- local rootj = char.HumanoidRootPart.RootJoint
- local sine = 0
- local RSnor = RS.C0
- local LSnor = LS.C0
- local RHnor = RH.C0
- local LHnor = LH.C0
- local rootjnor = rootj.C0
- local necknor = neck.C0
- --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")
- Part2 = Instance.new("Part")
- Part3 = Instance.new("Part")
- Part4 = Instance.new("Part")
- Part5 = Instance.new("Part")
- Part6 = Instance.new("Part")
- Part7 = Instance.new("Part")
- Weld8 = Instance.new("Weld")
- Weld9 = Instance.new("Weld")
- Weld10 = Instance.new("Weld")
- Weld11 = Instance.new("Weld")
- Weld12 = Instance.new("Weld")
- Weld13 = Instance.new("Weld")
- Weld14 = Instance.new("Weld")
- Weld15 = Instance.new("Weld")
- Weld16 = Instance.new("Weld")
- Part17 = Instance.new("Part")
- Decal18 = Instance.new("Decal")
- Decal19 = Instance.new("Decal")
- Part20 = Instance.new("Part")
- Part21 = Instance.new("Part")
- Decal22 = Instance.new("Decal")
- Model0.Name = "oofhammer"
- Model0.Parent = mas
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(-110.812485, 2.74998403, 89.2499847, 0, 0.999993384, 0, 4.37113883e-08, 0, -1, -1, 0, -4.37113883e-08)
- Part1.Orientation = Vector3.new(90, 90, 0)
- Part1.Position = Vector3.new(-110.812485, 2.74998403, 89.2499847)
- Part1.Rotation = Vector3.new(90, 0, -90)
- Part1.Color = Color3.new(0.643137, 0.741176, 0.278431)
- Part1.Size = Vector3.new(1.375, 0.875, 0.625)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Br. yellowish green")
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Br. yellowish green")
- Part1.Shape = Enum.PartType.Cylinder
- Part2.Parent = Model0
- Part2.CFrame = CFrame.new(-110.812485, 2.74998403, 86.6874847, 0, 0.999993384, 0, 4.37113883e-08, 0, -1, -1, 0, -4.37113883e-08)
- Part2.Orientation = Vector3.new(90, 90, 0)
- Part2.Position = Vector3.new(-110.812485, 2.74998403, 86.6874847)
- Part2.Rotation = Vector3.new(90, 0, -90)
- Part2.Color = Color3.new(0.0627451, 0.164706, 0.862745)
- Part2.Size = Vector3.new(1.25, 0.25, 0.25)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.BrickColor = BrickColor.new("Lapis")
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.brickColor = BrickColor.new("Lapis")
- Part2.Shape = Enum.PartType.Cylinder
- Part3.Name = "Hitbox"
- Part3.Parent = Model0
- Part3.CFrame = CFrame.new(-110.749985, 2.81248403, 85.1874847, 0, 1, 0, -1, 0, 0, 0, 0, 1)
- Part3.Orientation = Vector3.new(0, 0, -90)
- Part3.Position = Vector3.new(-110.749985, 2.81248403, 85.1874847)
- Part3.Rotation = Vector3.new(0, 0, -90)
- Part3.Color = Color3.new(0.960784, 0.803922, 0.188235)
- Part3.Size = Vector3.new(3.25, 2, 1.75)
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.BrickColor = BrickColor.new("Bright yellow")
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.brickColor = BrickColor.new("Bright yellow")
- Part3.Shape = Enum.PartType.Cylinder
- Part4.Parent = Model0
- Part4.CFrame = CFrame.new(-110.749985, 4.43748379, 85.2499847, 0, 0.999993384, 0, -1, 0, 0, 0, 0, 1)
- Part4.Orientation = Vector3.new(0, 0, -90)
- Part4.Position = Vector3.new(-110.749985, 4.43748379, 85.2499847)
- Part4.Rotation = Vector3.new(0, 0, -90)
- Part4.Color = Color3.new(0.960784, 0.803922, 0.188235)
- Part4.Size = Vector3.new(0.5, 2.375, 2.125)
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.BrickColor = BrickColor.new("Bright yellow")
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.brickColor = BrickColor.new("Bright yellow")
- Part4.Shape = Enum.PartType.Cylinder
- Part5.Name = "HandlePart"
- Part5.Parent = Model0
- Part5.CFrame = CFrame.new(-110.812485, 2.74998403, 87.9374847, 0, 0.999993384, 0, 4.37113883e-08, 0, -1, -1, 0, -4.37113883e-08)
- Part5.Orientation = Vector3.new(90, 90, 0)
- Part5.Position = Vector3.new(-110.812485, 2.74998403, 87.9374847)
- Part5.Rotation = Vector3.new(90, 0, -90)
- Part5.Color = Color3.new(0.643137, 0.741176, 0.278431)
- Part5.Transparency = 1
- Part5.Size = Vector3.new(4, 0.25, 0.25)
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.BrickColor = BrickColor.new("Br. yellowish green")
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Part5.brickColor = BrickColor.new("Br. yellowish green")
- Part5.Shape = Enum.PartType.Cylinder
- Part6.Parent = Model0
- Part6.CFrame = CFrame.new(-110.749985, 2.74998403, 85.9999847, 0, 0.999993384, 0, 4.37113883e-08, 0, -1, -1, 0, -4.37113883e-08)
- Part6.Orientation = Vector3.new(90, 90, 0)
- Part6.Position = Vector3.new(-110.749985, 2.74998403, 85.9999847)
- Part6.Rotation = Vector3.new(90, 0, -90)
- Part6.Color = Color3.new(0.0627451, 0.164706, 0.862745)
- Part6.Size = Vector3.new(0.375, 0.875, 0.625)
- Part6.BottomSurface = Enum.SurfaceType.Smooth
- Part6.BrickColor = BrickColor.new("Lapis")
- Part6.TopSurface = Enum.SurfaceType.Smooth
- Part6.brickColor = BrickColor.new("Lapis")
- Part6.Shape = Enum.PartType.Cylinder
- Part7.Parent = Model0
- Part7.CFrame = CFrame.new(-110.812485, 2.74998403, 88.0624847, 0, 0.999993384, 0, 4.37113883e-08, 0, -1, -1, 0, -4.37113883e-08)
- Part7.Orientation = Vector3.new(90, 90, 0)
- Part7.Position = Vector3.new(-110.812485, 2.74998403, 88.0624847)
- Part7.Rotation = Vector3.new(90, 0, -90)
- Part7.Color = Color3.new(0.643137, 0.741176, 0.278431)
- Part7.Size = Vector3.new(1.5, 0.25, 0.25)
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.BrickColor = BrickColor.new("Br. yellowish green")
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part7.brickColor = BrickColor.new("Br. yellowish green")
- Part7.Shape = Enum.PartType.Cylinder
- Weld8.Name = "BTWeld"
- Weld8.Parent = Part7
- Weld8.C1 = CFrame.new(1.1875, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld8.Part0 = Part7
- Weld8.Part1 = Part1
- Weld8.part1 = Part1
- Weld9.Name = "BTWeld"
- Weld9.Parent = Part7
- Weld9.C1 = CFrame.new(0.187515259, -1.00001597, -0.687515259, 0, 0.999993384, 0, 4.37113883e-08, 0, -1, -1, 0, -4.37113883e-08)
- Weld9.Part0 = Part7
- Weld9.Part1 = Part21
- Weld9.part1 = Part21
- Weld10.Name = "BTWeld"
- Weld10.Parent = Part7
- Weld10.C1 = CFrame.new(-1.375, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld10.Part0 = Part7
- Weld10.Part1 = Part2
- Weld10.part1 = Part2
- Weld11.Name = "BTWeld"
- Weld11.Parent = Part7
- Weld11.C1 = CFrame.new(0.0625, -0.0625, 2.875, -4.37113883e-08, 0, 1, 0, 0.999993384, 0, -1, 0, -4.37113883e-08)
- Weld11.Part0 = Part7
- Weld11.Part1 = Part3
- Weld11.part1 = Part3
- Weld12.Name = "BTWeld"
- Weld12.Parent = Part7
- Weld12.C1 = CFrame.new(1.68749976, -0.0625, 2.8125, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)
- Weld12.Part0 = Part7
- Weld12.Part1 = Part4
- Weld12.part1 = Part4
- Weld13.Name = "BTWeld"
- Weld13.Parent = Part7
- Weld13.C1 = CFrame.new(-1.4375, -0.0625, 2.8125, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)
- Weld13.Part0 = Part7
- Weld13.Part1 = Part20
- Weld13.part1 = Part20
- Weld14.Name = "BTWeld"
- Weld14.Parent = Part7
- Weld14.C1 = CFrame.new(0.0625, -2.8125, 0.0625002384, 0, -1, 0, 1, 0, 0, 0, 0, 1)
- Weld14.Part0 = Part7
- Weld14.Part1 = Part17
- Weld14.part1 = Part17
- Weld15.Name = "BTWeld"
- Weld15.Parent = Part7
- Weld15.C1 = CFrame.new(-0.125, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld15.Part0 = Part7
- Weld15.Part1 = Part5
- Weld15.part1 = Part5
- Weld16.Name = "BTWeld"
- Weld16.Parent = Part7
- Weld16.C1 = CFrame.new(-2.0625, -0.0625, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld16.Part0 = Part7
- Weld16.Part1 = Part6
- Weld16.part1 = Part6
- Part17.Name = "XXX"
- Part17.Parent = Model0
- Part17.CFrame = CFrame.new(-110.749985, 2.8124845, 85.2499847, -0.999993384, 0, 0, 0, 4.37113883e-08, -1, -0, -1, -4.37113883e-08)
- Part17.Orientation = Vector3.new(90, 180, 0)
- Part17.Position = Vector3.new(-110.749985, 2.8124845, 85.2499847)
- Part17.Rotation = Vector3.new(90, 0, -180)
- Part17.Color = Color3.new(1, 1, 0)
- Part17.Size = Vector3.new(2, 1.375, 1.125)
- Part17.BottomSurface = Enum.SurfaceType.Smooth
- Part17.BrickColor = BrickColor.new("New Yeller")
- Part17.TopSurface = Enum.SurfaceType.Smooth
- Part17.brickColor = BrickColor.new("New Yeller")
- Part17.Shape = Enum.PartType.Cylinder
- Decal18.Name = "Bighead Face"
- Decal18.Parent = Part17
- Decal18.Texture = "http://www.roblox.com/asset/?id=3154087082"
- Decal18.Face = Enum.NormalId.Right
- Decal19.Name = "Bighead Face"
- Decal19.Parent = Part17
- Decal19.Texture = "http://www.roblox.com/asset/?id=3154087082"
- Decal19.Face = Enum.NormalId.Left
- Part20.Parent = Model0
- Part20.CFrame = CFrame.new(-110.749985, 1.31248403, 85.2499847, 0, 0.999993384, 0, -1, 0, 0, 0, 0, 1)
- Part20.Orientation = Vector3.new(0, 0, -90)
- Part20.Position = Vector3.new(-110.749985, 1.31248403, 85.2499847)
- Part20.Rotation = Vector3.new(0, 0, -90)
- Part20.Color = Color3.new(0.960784, 0.803922, 0.188235)
- Part20.Size = Vector3.new(0.5, 2.375, 2.125)
- Part20.BottomSurface = Enum.SurfaceType.Smooth
- Part20.BrickColor = BrickColor.new("Bright yellow")
- Part20.TopSurface = Enum.SurfaceType.Smooth
- Part20.brickColor = BrickColor.new("Bright yellow")
- Part20.Shape = Enum.PartType.Cylinder
- Part21.Name = "Arm"
- Part21.Parent = Model0
- Part21.CFrame = CFrame.new(-111, 3.75, 88.75, 0.999986768, 0, 0, 0, 1, 0, 0, 0, 1)
- Part21.Position = Vector3.new(-111, 3.75, 88.75)
- Part21.Color = Color3.new(0.803922, 0.803922, 0.803922)
- Part21.Size = Vector3.new(1, 2, 1)
- Part21.BottomSurface = Enum.SurfaceType.Smooth
- Part21.BrickColor = BrickColor.new("Mid gray")
- Part21.TopSurface = Enum.SurfaceType.Smooth
- Part21.brickColor = BrickColor.new("Mid gray")
- Decal22.Name = "Bighead Face"
- Decal22.Parent = nil
- Decal22.Texture = "http://www.roblox.com/asset/?id=3154087082"
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = char
- pcall(function() v:MakeJoints() end)
- end
- 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
- 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
- Hammer = Model0
- Hammer.Arm.Transparency = 1
- for _,v in pairs (Hammer:children()) do
- v.CanCollide = false
- v.Anchored = false
- end
- local Grip = ezweld(char, Hammer.HandlePart, ra, CFrame.new(0, 0, -0.95) * CFrame.Angles(0, -77, 77))
- Gripnor = Grip.C0
- Cos = math.cos
- hum.Animator:Destroy()
- attack = false
- HOLD = false
- IT = Instance.new
- movelegs = true
- function Cso(ID, PARENT, VOLUME, PITCH)
- local NSound = nil
- coroutine.resume(coroutine.create(function()
- NSound = IT("Sound", PARENT)
- NSound.Volume = VOLUME
- NSound.Pitch = PITCH
- NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
- Swait()
- NSound:play()
- game:GetService("Debris"):AddItem(NSound, 10)
- end))
- return NSound
- end
- function spherefx(position, color, material, grow)
- coroutine.resume(coroutine.create(function()
- local sphere = Instance.new("Part",char)
- sphere.Shape = "Ball"
- sphere.BrickColor = BrickColor.new(color)
- sphere.Anchored = true
- sphere.CanCollide = false
- sphere.Position = position
- sphere.Size = Vector3.new(4, 4, 4)
- sphere.Material = material
- for i = 1,15 do
- Swait()
- sphere.Transparency = sphere.Transparency + grow
- sphere.Size = sphere.Size + Vector3.new(grow, grow, grow)
- end
- sphere:Destroy()
- end))
- end
- MODE = "Damage"
- Debris = game:GetService("Debris")
- function Damage(hitbox, lifetime, dmg)
- coroutine.resume(coroutine.create(function()
- local hitter = hitbox.Touched:connect(function(hit)
- for _,v in pairs (hit.Parent:children()) do
- if v:IsA("Humanoid") and v.Parent ~= char and not v.Parent:FindFirstChild("I GNOMED YOU") and MODE == "Damage" then
- v.Health = v.Health - 15
- local gnome = Instance.new("NumberValue",v.Parent)
- gnome.Name = "I GNOMED YOU"
- Debris:AddItem(gnome, 0.1)
- end
- if v:IsA("Humanoid") and v.Parent ~= char and MODE == "Break" then
- v.Parent:BreakJoints()
- v.MaxHealth = 0
- v.Health = 0
- end
- if v:IsA("Humanoid") and v.Parent ~= char and MODE == "Kick" then
- local tokick = game:GetService("Players"):GetPlayerFromCharacter(v.Parent)
- if tokick then
- tokick:Kick("You have been kicked by the OOFINATOR")
- else
- local chara = v.Parent
- if chara then
- chara:ClearAllChildren()
- end
- end
- end
- end
- end)
- wait(lifetime)
- hitter:disconnect()
- end))
- end
- function SLAM()
- attack = true
- movelegs = true
- HOLD = true
- repeat
- Damage(Model0.Hitbox, 1.7, 15)
- for i = 1,12 do
- Swait()
- clerp(RS, RSnor * CFrame.new() * CFrame.Angles(0, 0, 90), 0.15)
- clerp(LS, LSnor * CFrame.new() * CFrame.Angles(0 + 0.1 * Cos(sine / 20), 0, 0.15 - 0.2 * Cos(sine / 20)), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.05 * Cos(sine / 20)), 0.15)
- --clerp(LH, LHnor * CFrame.new() * CFrame.Angles(0, 0, 0), 0.15)
- --clerp(RH, RHnor * CFrame.new() * CFrame.Angles(0, 0, 0), 0.15)
- clerp(Grip, Gripnor * CFrame.new() * CFrame.Angles(0, 0, 0), 0.15)
- end
- Cso(2150821806, char.Head, 10, 1)
- for i = 1,12 do
- Swait()
- clerp(RS, RSnor * CFrame.new() * CFrame.Angles(0, 0, 0), 0.15)
- clerp(LS, LSnor * CFrame.new() * CFrame.Angles(0 + 0.1 * Cos(sine / 20), 0, 0.15 - 0.2 * Cos(sine / 20)), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.05 * Cos(sine / 20)), 0.15)
- --clerp(LH, LHnor * CFrame.new() * CFrame.Angles(0, 0, 0), 0.15)
- --clerp(RH, RHnor * CFrame.new() * CFrame.Angles(0, 0, 0), 0.15)
- clerp(Grip, Gripnor * CFrame.new() * CFrame.Angles(0, 0, 0), 0.15)
- end
- spherefx(Model0.Hitbox.Position, "New Yeller", "Neon", 0.1)
- until HOLD == false
- attack = false
- HOLD = false
- movelegs = true
- end
- function SPIN()
- attack = true
- HOLD = true
- movelegs = true
- local spinme = 0
- local weeesmack = Model0.Hitbox.Touched:connect(function(hit)
- for _,v in pairs (hit.Parent:children()) do
- if v:IsA("Humanoid") and v.Parent ~= char and not v.Parent:FindFirstChild("I GNOMED YOU") and MODE == "Damage" then
- v.Health = v.Health + 50
- local gnome = Instance.new("NumberValue",v.Parent)
- gnome.Name = "I GNOMED YOU"
- Debris:AddItem(gnome, 0.1)
- end
- if v:IsA("Humanoid") and v.Parent ~= char and MODE == "Break" then
- v.Parent:BreakJoints()
- v.MaxHealth = 0
- v.Health = 0
- end
- if v:IsA("Humanoid") and v.Parent ~= char and MODE == "Kick" then
- local tokick = game:GetService("Players"):GetPlayerFromCharacter(v.Parent)
- if tokick then
- tokick:Kick("You have been kicked by the OOFINATOR")
- else
- local chara = v.Parent
- if chara then
- chara:ClearAllChildren()
- end
- end
- end
- end
- end)
- repeat
- for i = 1,20 do
- Swait()
- spinme = spinme + 10
- clerp2(rootj, rootjnor * CFrame.Angles(0, 0, spinme))
- clerp(RS, RSnor * CFrame.new() * CFrame.Angles(0, -1, 77), 0.15)
- clerp(LS, LSnor * CFrame.new() * CFrame.Angles(0, 1, 77), 0.15)
- --clerp(LH, LHnor * CFrame.new() * CFrame.Angles(0, 0, 0), 0.15)
- --clerp(RH, RHnor * CFrame.new() * CFrame.Angles(0, 0, 0), 0.15)
- clerp(Grip, Gripnor * CFrame.new() * CFrame.Angles(77, 0, 0), 0.15)
- end
- until HOLD == false
- attack = false
- movelegs = true
- weeesmack:disconnect()
- end
- mouse.Button1Down:connect(function()
- if attack == false then
- SLAM()
- end
- end)
- mouse.Button1Up:connect(function()
- HOLD = false
- end)
- mouse.KeyDown:connect(function(key)
- key = key:lower()
- if key == "x" and attack == false then
- SPIN()
- end
- end)
- mouse.KeyUp:connect(function(key)
- key = key:lower()
- if key == "x" then
- HOLD = false
- end
- end)
- plr.Chatted:connect(function(msg)
- msg = msg:lower()
- if msg == "!damage" then
- MODE = "Damage"
- end
- if msg == "!break" then
- MODE = "Break"
- end
- if msg == "!kick" then
- MODE = "Kick"
- end
- end)
- while true do
- Swait()
- sine = sine + 1
- local 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 char.HumanoidRootPart.Velocity.Magnitude > 1 and touchfloor then
- animpose = "Walking"
- elseif char.HumanoidRootPart.Velocity.Y > 0.5 and touchfloor == nil then
- animpose = "Jumping"
- elseif char.HumanoidRootPart.Velocity.Y < 0.5 and touchfloor == nil then
- animpose = "Falling"
- else
- animpose = "Idle"
- end
- if animpose == "Idle" and attack == false then
- clerp(RS, RSnor * CFrame.new() * CFrame.Angles(0, 0, 78 / 2), 0.15)
- clerp(LS, LSnor * CFrame.new() * CFrame.Angles(0 + 0.1 * Cos(sine / 20), 0, 0.15 - 0.2 * Cos(sine / 20)), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.05 * Cos(sine / 20)), 0.15)
- --clerp(LH, LHnor * CFrame.new() * CFrame.Angles(0, 0, 0), 0.15)
- --clerp(RH, RHnor * CFrame.new() * CFrame.Angles(0, 0, 0), 0.15)
- clerp(Grip, Gripnor * CFrame.new() * CFrame.Angles(0, 0, 0), 0.15)
- end
- if animpose == "Idle" and movelegs == true then
- clerp(LH, LHnor * CFrame.new() * CFrame.Angles(0, 0, 0), 0.15)
- clerp(RH, RHnor * CFrame.new() * CFrame.Angles(0, 0, 0), 0.15)
- end
- if animpose == "Walking" and attack == false then
- clerp(RS, RSnor * CFrame.new() * CFrame.Angles(0, 0, 78 / 2), 0.15)
- clerp(LS, LSnor * CFrame.new() * CFrame.Angles(0 + 0.1 * Cos(sine / 12), 0, 0 + 1 * Cos(sine / 9)), 0.15)
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.05 * Cos(sine / 12)) * CFrame.Angles(-0.5, 0, 0), 0.15)
- --clerp(LH, LHnor * CFrame.new() * CFrame.Angles(0, 0, 0 + 1 * Cos(sine / 9)), 0.15)
- --clerp(RH, RHnor * CFrame.new() * CFrame.Angles(0, 0, 0 + 1 * Cos(sine / 9)), 0.15)
- clerp(Grip, Gripnor * CFrame.new(0, 0.15, -0.5) * CFrame.Angles(-0.5, 0, 0), 0.15)
- end
- if animpose == "Walking" and movelegs == true then
- clerp(LH, LHnor * CFrame.new() * CFrame.Angles(0, 0, 0 + 1 * Cos(sine / 9)), 0.15)
- clerp(RH, RHnor * CFrame.new() * CFrame.Angles(0, 0, 0 + 1 * Cos(sine / 9)), 0.15)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement