Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- 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;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end --Made by Ahtoh13131423144235, Rufus14
- --Credit to ttyyuu12345 for the model to script plugin v4
- --Credit to Rufus14 for helping
- --[[
- Change log:
- -Added u attack
- --]]
- wait(2)
- local player = game.Players.LocalPlayer
- local char = player.Character
- local mouse = player:GetMouse()
- local canAttack = false
- local damage = false
- local rootJointC0 = char.HumanoidRootPart.RootJoint.C0
- char.Torso["Right Shoulder"]:Remove()
- --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"))
- Part0 = Instance.new("Part")
- Part0:BreakJoints()
- Weld1 = Instance.new("Weld")
- Weld2 = Instance.new("Weld")
- Weld3 = Instance.new("Weld")
- SpecialMesh2 = Instance.new("SpecialMesh")
- Part0.Name = "Handle"
- Part0.Parent = mas
- Part0.BrickColor = BrickColor.new("Mid gray")
- Part0.Rotation = Vector3.new(-180, 0, 180)
- Part0.FormFactor = Enum.FormFactor.Plate
- Part0.Size = Vector3.new(1, 1.20000005, 1)
- Part0.CFrame = CFrame.new(-18.1699982, 0.600000024, -0.639984131, -1, -1.21401766e-17, -2.78761293e-23, -1.21401766e-17, 1, 1.21401766e-17, 2.78761293e-23, 1.21401766e-17, -1)
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.TopSurface = Enum.SurfaceType.Smooth
- Part0.Color = Color3.new(0.803922, 0.803922, 0.803922)
- Part0.Position = Vector3.new(-18.1699982, 0.600000024, -0.639984131)
- Part0.Orientation = Vector3.new(0, -180, 0)
- Part0.Color = Color3.new(0.803922, 0.803922, 0.803922)
- Weld1.C0 = Weld1.C0 * CFrame.new(0,-1,-0.5) * CFrame.fromEulerAnglesXYZ(-1.5,0,0)
- Weld1.Parent = char["Right Arm"]
- Weld1.Part0 = char["Right Arm"]
- Weld1.Part1 = Part0
- Weld2.C0 = CFrame.new(1.5,0.5,0)
- Weld2.C1 = CFrame.new(0,0.5,0)
- Weld2.Parent = char.Torso
- Weld2.Part0 = char.Torso
- Weld2.Part1 = char["Right Arm"]
- Weld3.C0 = CFrame.new(-1.5,0.5,0)
- Weld3.C1 = CFrame.new(0,0.5,0)
- Weld3.Parent = char.Torso
- Weld3.Part0 = char.Torso
- Weld3.Part1 = nil
- SpecialMesh2.Parent = Part0
- SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=10470609"
- SpecialMesh2.Scale = Vector3.new(1.5, 1.5, 1.5)
- SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=10483355"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- SpecialMesh2.Scale = Vector3.new(1.5, 1.5, 1.5)
- 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
- for i = 1,15 do
- Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0)
- wait()
- end
- canAttack = true
- char.Humanoid.Died:connect(function()
- local sound = Instance.new("Sound",char)
- sound.SoundId = "rbxassetid://182003383"
- sound.Pitch = 1
- sound:Play()
- end)
- mouse.Button1Down:connect(function()
- if canAttack == true then
- canAttack = false
- for i = 1,10 do
- Weld2.C0 = Weld2.C0 * CFrame.Angles(0,0,-0.1)
- wait()
- end
- for i = 1,5 do
- Weld1.C0 = Weld1.C0 * CFrame.Angles(0,0,0.1)
- wait()
- end
- local drink = Instance.new("Sound", char)
- drink.SoundId = "rbxassetid://10722059"
- drink.Volume = 5
- drink:Play()
- wait(3)
- char:FindFirstChild("Humanoid").Health = char:FindFirstChild("Humanoid").Health + 20
- char:FindFirstChild("Humanoid").WalkSpeed = char:FindFirstChild("Humanoid").WalkSpeed + 0.1
- for i = 1,5 do
- Weld1.C0 = Weld1.C0 * CFrame.Angles(0,0,-0.1)
- wait()
- end
- for i = 1,10 do
- Weld2.C0 = Weld2.C0 * CFrame.Angles(0,0,0.1)
- wait()
- end
- canAttack = true
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key:lower() == "q" and canAttack == true then
- canAttack = false
- for i = 1,10 do
- Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0)
- wait()
- end
- damage = true
- for i = 1,19 do
- Weld2.C0 = Weld2.C0 * CFrame.Angles(-0.1,0,0)
- wait()
- end
- for i = 1,9 do
- Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0)
- wait()
- end
- damage = false
- canAttack = true
- elseif key:lower() == "e" and canAttack == true then
- canAttack = false
- Weld3.Part1 = char["Left Arm"]
- char.Torso["Left Shoulder"].Part1 = nil
- for i = 1,15 do
- Weld3.C0 = Weld3.C0 * CFrame.Angles(0.1,0,0)
- wait()
- end
- for i = 1,15 do
- Weld2.C0 = Weld2.C0 * CFrame.Angles(0,0,0.1)
- Weld3.C0 = Weld3.C0 * CFrame.Angles(0,0,-0.1)
- wait()
- end
- damage = true
- for i = 1,400 do
- char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1)
- wait()
- end
- char.HumanoidRootPart.RootJoint.C0 = rootJointC0
- damage = false
- for i = 1,15 do
- Weld2.C0 = Weld2.C0 * CFrame.Angles(0,0,-0.1)
- wait()
- end
- Weld3.C0 = CFrame.new(-1.5,0.5,0)
- char.Torso["Left Shoulder"].Part1 = char["Left Arm"]
- Weld3.Part1 = nil
- canAttack = true
- elseif key:lower() == "r" and canAttack == true then
- canAttack = false
- for i = 1,13 do
- Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0)
- wait()
- end
- wait(5)
- Part0.Transparency = 1
- local fake = Part0:Clone()
- fake.Parent = char
- fake.CanCollide = false
- fake.Position = Part0.Position
- fake.Transparency = 0
- local bodyVelocity = Instance.new("BodyVelocity")
- bodyVelocity.Parent = fake
- bodyVelocity.Velocity = char.Torso.CFrame.lookVector * 90
- fake.Touched:connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= char then
- hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - 10
- hit.Parent:FindFirstChild("Humanoid").Sit = true
- fake:Remove()
- end
- end)
- for i = 1,13 do
- Weld2.C0 = Weld2.C0 * CFrame.Angles(-0.1,0,0)
- wait()
- end
- for i = 1,100 do
- Part0.Transparency = Part0.Transparency - 0.01
- wait()
- end
- Part0.Transparency = 0
- canAttack = true
- elseif key:lower() == "t" and canAttack == true and mouse.Target ~= nil then
- canAttack = false
- local victim = mouse.Target.Parent
- local humanoid = victim:FindFirstChild("Humanoid")
- if humanoid == nil then
- canAttack = true
- return
- end
- humanoid.WalkSpeed = 0
- char.Humanoid.WalkSpeed = 0
- Part0.Transparency = 1
- Weld2.C0 = CFrame.new(1.5,0.5,0)
- local fake = Part0:Clone()
- fake.Parent = char
- fake.Transparency = 0
- local fakeWeld = Instance.new("Weld")
- fakeWeld.C0 = fakeWeld.C0 * CFrame.new(0,-1,-0.5) * CFrame.fromEulerAnglesXYZ(-1.5,0,0)
- fakeWeld.Part0 = victim["Right Arm"]
- fakeWeld.Part1 = fake
- fakeWeld.Parent = victim["Right Arm"]
- local armWeld = Instance.new("Weld")
- armWeld.C0 = CFrame.new(1.5,0.5,0)
- armWeld.C1 = CFrame.new(0,0.5,0)
- armWeld.Parent = victim.Torso
- armWeld.Part0 = victim.Torso
- armWeld.Part1 = victim["Right Arm"]
- for i = 1,15 do
- armWeld.C0 = armWeld.C0 * CFrame.Angles(0.1,0,0)
- wait()
- end
- for i = 1,10 do
- armWeld.C0 = armWeld.C0 * CFrame.Angles(0,0,-0.1)
- wait()
- end
- for i = 1,5 do
- fakeWeld.C0 = fakeWeld.C0 * CFrame.Angles(0,0,0.1)
- wait()
- end
- local drink = Instance.new("Sound", victim)
- drink.SoundId = "rbxassetid://10722059"
- drink.Volume = 5
- drink:Play()
- wait(3)
- fakeWeld:Remove()
- victim.Head.BrickColor = BrickColor.new("Medium green")
- if victim.Head:FindFirstChild("face") then
- victim.Head.face.Texture = "http://www.roblox.com/asset/?id=137852314"
- end
- humanoid.PlatformStand = true
- for i = 1,humanoid.MaxHealth do
- humanoid.Health = humanoid.Health - 1
- wait()
- end
- char.Humanoid.WalkSpeed = 16
- for i = 1,100 do
- Part0.Transparency = Part0.Transparency - 0.01
- wait()
- end
- Part0.Transparency = 0
- for i = 1,15 do
- Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0)
- wait()
- end
- canAttack = true
- elseif key:lower() == "y" and canAttack == true and mouse.Target ~= nil then
- canAttack = false
- local victim = mouse.Target.Parent
- local humanoid = victim:FindFirstChild("Humanoid")
- if humanoid == nil then
- canAttack = true
- return
- end
- humanoid.WalkSpeed = 0
- char.Humanoid.WalkSpeed = 0
- Part0.Transparency = 1
- Weld2.C0 = CFrame.new(1.5,0.5,0)
- local fake = Part0:Clone()
- fake.Parent = char
- fake.Transparency = 0
- local fakeWeld = Instance.new("Weld")
- fakeWeld.C0 = fakeWeld.C0 * CFrame.new(0,-1,-0.5) * CFrame.fromEulerAnglesXYZ(-1.5,0,0)
- fakeWeld.Part0 = victim["Right Arm"]
- fakeWeld.Part1 = fake
- fakeWeld.Parent = victim["Right Arm"]
- local armWeld = Instance.new("Weld")
- armWeld.C0 = CFrame.new(1.5,0.5,0)
- armWeld.C1 = CFrame.new(0,0.5,0)
- armWeld.Parent = victim.Torso
- armWeld.Part0 = victim.Torso
- armWeld.Part1 = victim["Right Arm"]
- for i = 1,15 do
- armWeld.C0 = armWeld.C0 * CFrame.Angles(0.1,0,0)
- wait()
- end
- for i = 1,10 do
- armWeld.C0 = armWeld.C0 * CFrame.Angles(0,0,-0.1)
- wait()
- end
- for i = 1,5 do
- fakeWeld.C0 = fakeWeld.C0 * CFrame.Angles(0,0,0.1)
- wait()
- end
- local drink = Instance.new("Sound", victim)
- drink.SoundId = "rbxassetid://10722059"
- drink.Volume = 5
- drink:Play()
- wait(3)
- fake:Remove()
- humanoid.Health = humanoid.Health + 20
- char.Humanoid.WalkSpeed = 16
- for i = 1,10 do
- armWeld.C0 = armWeld.C0 * CFrame.Angles(0,0,0.1)
- wait()
- end
- for i = 1,15 do
- armWeld.C0 = armWeld.C0 * CFrame.Angles(-0.1,0,0)
- wait()
- end
- for i = 1,100 do
- Part0.Transparency = Part0.Transparency - 0.01
- wait()
- end
- Part0.Transparency = 0
- for i = 1,15 do
- Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0)
- wait()
- end
- canAttack = true
- elseif key:lower() == "u" and canAttack == true and mouse.Target ~= nil then
- canAttack = false
- local victim = mouse.Target.Parent
- local humanoid = victim:FindFirstChild("Humanoid")
- if humanoid == nil then
- canAttack = true
- return
- end
- humanoid.WalkSpeed = 0
- char.Humanoid.WalkSpeed = 0
- Part0.Transparency = 1
- Weld2.C0 = CFrame.new(1.5,0.5,0)
- local fake = Part0:Clone()
- fake.Parent = char
- fake.Transparency = 0
- local fakeWeld = Instance.new("Weld")
- fakeWeld.C0 = fakeWeld.C0 * CFrame.new(0,-1,-0.5) * CFrame.fromEulerAnglesXYZ(-1.5,0,0)
- fakeWeld.Part0 = victim["Right Arm"]
- fakeWeld.Part1 = fake
- fakeWeld.Parent = victim["Right Arm"]
- local armWeld = Instance.new("Weld")
- armWeld.C0 = CFrame.new(1.5,0.5,0)
- armWeld.C1 = CFrame.new(0,0.5,0)
- armWeld.Parent = victim.Torso
- armWeld.Part0 = victim.Torso
- armWeld.Part1 = victim["Right Arm"]
- for i = 1,15 do
- armWeld.C0 = armWeld.C0 * CFrame.Angles(0.1,0,0)
- wait()
- end
- for i = 1,10 do
- armWeld.C0 = armWeld.C0 * CFrame.Angles(0,0,-0.1)
- wait()
- end
- for i = 1,5 do
- fakeWeld.C0 = fakeWeld.C0 * CFrame.Angles(0,0,0.1)
- wait()
- end
- local drink = Instance.new("Sound", victim)
- drink.SoundId = "rbxassetid://10722059"
- drink.Volume = 5
- drink:Play()
- wait(3)
- local freezing = Instance.new("Sound", victim)
- freezing.SoundId = "rbxassetid://268249319"
- freezing.Volume = 5
- freezing:Play()
- local value = Instance.new("BoolValue",victim)
- value.Name = "Frozen"
- value.Value = true
- for i,v in pairs(victim:GetChildren()) do
- if v.ClassName == "Part" then
- v.BrickColor = BrickColor.new("Bright blue")
- v.Anchored = true
- end
- end
- char.Humanoid.WalkSpeed = 16
- for i = 1,100 do
- Part0.Transparency = Part0.Transparency - 0.01
- wait()
- end
- Part0.Transparency = 0
- for i = 1,15 do
- Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0)
- wait()
- end
- canAttack = true
- end
- end)
- Part0.Touched:connect(function(hit)
- if damage == true then
- if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= char then
- hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - 10
- hit.Parent:FindFirstChild("Humanoid").Sit = true
- local hit0 = Instance.new("Sound", hit)
- hit0.SoundId = "rbxassetid://260430060"
- hit0.Volume = 3
- local hit1 = Instance.new("Sound", hit)
- hit1.SoundId = "rbxassetid://138087186"
- hit1.Volume = 3
- local hit2 = Instance.new("Sound", hit)
- hit2.SoundId = "rbxassetid://131237241"
- hit2.Volume = 3
- local hit3 = Instance.new("Sound", hit)
- hit3.SoundId = "rbxassetid://278062209"
- hit3.Volume = 3
- hit3.TimePosition = 0.33
- local math1 = math.random(1,4)
- if math1 == 1 then
- hit0:Play()
- end
- if math1 == 2 then
- hit1:Play()
- end
- if math1 == 3 then
- hit2:Play()
- end
- if math1 == 4 then
- hit3:Play()
- end
- if hit.Parent:FindFirstChild("Frozen") then
- local hit0 = Instance.new("Sound", hit)
- hit0.SoundId = "rbxassetid://516789356"
- hit0.Volume = 5
- hit0:Play()
- hit.Parent.Frozen:Remove()
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v.ClassName == "Part" then
- v.Anchored = false
- end
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement