Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This script has been converted to FE by iPxter
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- do
- print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
- script.Parent = Player.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,Connect=function(self,f)self.Function=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 and t.Function then
- t.Function(...)
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=Player then return end
- if io.isMouse then
- m.Target = io.Target
- m.Hit = io.Hit
- else
- 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 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})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local Mouse = Player:GetMouse()
- 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)
- Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
- end
- owner["Right Arm"].Transparency = 1
- local h = Instance.new("Part")
- h.Name = "Handle"
- h.Parent = owner
- h.Size = Vector3.new(1,2,1)
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("Bright red")
- h.TopSurface = "Smooth"
- h.BottomSurface = "Smooth"
- h:BreakJoints()
- h.Transparency = 0
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.1, 1.1, 1.1)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner ["Right Arm"]
- w1.Part0 = h
- w1.Part1 = owner ["Right Arm"]
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
- owner["Left Arm"].Transparency = 1
- local h = Instance.new("Part")
- h.Name = "Handle"
- h.Parent = owner
- h.Size = Vector3.new(1,2,1)
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("Bright red")
- h.TopSurface = "Smooth"
- h.BottomSurface = "Smooth"
- h:BreakJoints()
- h.Transparency = 0
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.1, 1.1, 1.1)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner ["Left Arm"]
- w1.Part0 = h
- w1.Part1 = owner ["Left Arm"]
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
- owner["Left Leg"].Transparency = 1
- local h = Instance.new("Part")
- h.Name = "Handle"
- h:BreakJoints()
- h.Parent = owner
- h.Size = Vector3.new(1,2,1)
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("Bright red")
- h.TopSurface = "Smooth"
- h.BottomSurface = "Smooth"
- h.Transparency = 0
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.1, 1.1, 1.1)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner ["Left Leg"]
- w1.Part0 = h
- w1.Part1 = owner ["Left Leg"]
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
- owner["Right Leg"].Transparency = 1
- local h = Instance.new("Part")
- h.Name = "Handle"
- h.Parent = owner
- h.Size = Vector3.new(1,2,1)
- h:BreakJoints()
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("Bright red")
- h.TopSurface = "Smooth"
- h.BottomSurface = "Smooth"
- h.Transparency = 0
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.1, 1.1, 1.1)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner ["Right Leg"]
- w1.Part0 = h
- w1.Part1 = owner ["Right Leg"]
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
- owner["Left Leg"].Transparency = 1
- local h = Instance.new("Part")
- h.Name = "Handle"
- h.Parent = owner
- h.Size = Vector3.new(1,2,1)
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("Bright red")
- h.TopSurface = "Smooth"
- h:BreakJoints()
- h.BottomSurface = "Smooth"
- h.Transparency = 0
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.1, 1.1, 1.1)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner ["Left Leg"]
- w1.Part0 = h
- w1.Part1 = owner ["Left Leg"]
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
- owner.Torso.Transparency = 1
- local h = Instance.new("Part")
- h.Name = "Handle"
- h.Parent = owner
- h.Size = Vector3.new(2,2,1)
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("Bright red")
- h.TopSurface = "Smooth"
- h:BreakJoints()
- h.BottomSurface = "Smooth"
- h.Transparency = 0
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.1, 1.1, 1.1)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner.Torso
- w1.Part0 = h
- w1.Part1 = owner.Torso
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
- owner.Head.Transparency = 1
- local h = Instance.new("Part")
- h.Name = "Handle"
- h.Parent = owner
- h.Size = Vector3.new(1,1,1)
- h:BreakJoints()
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("Bright red")
- h.TopSurface = "Smooth"
- h.BottomSurface = "Smooth"
- h.Transparency = 0
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("SpecialMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.3, 1.3, 1.3)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner.Head
- w1.Part0 = h
- w1.Part1 = owner.Head
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
- local h = Instance.new("Part")
- h.Name = "Handle"
- h.Parent = owner
- h:BreakJoints()
- h.Size = Vector3.new(2,3,1)
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("Really black")
- h.TopSurface = "Smooth"
- h.BottomSurface = "Smooth"
- h.Transparency = 0
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.1, 1.1, 1.1)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner.Torso
- w1.Part0 = h
- w1.Part1 = owner.Torso
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0.5, -0.5, -1)
- local h = Instance.new("Part")
- h.Name = "Handle"
- h.Parent = owner
- h.Size = Vector3.new(2,3,1)
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("Really black")
- h.TopSurface = "Smooth"
- h.BottomSurface = "Smooth"
- h:BreakJoints()
- h.Transparency = 0
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.1, 1.1, 1.1)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner.Torso
- w1.Part0 = h
- w1.Part1 = owner.Torso
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(-0.5, -0.5, -1)
- local h = Instance.new("Part")
- h.Name = "Handle"
- h.Parent = owner
- h.Size = Vector3.new(2,3,1)
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("Really black")
- h.TopSurface = "Smooth"
- h:BreakJoints()
- h.BottomSurface = "Smooth"
- h.Transparency = 0
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.1, 1.1, 1.1)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner.Torso
- w1.Part0 = h
- w1.Part1 = owner.Torso
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(1.5, -1.5, -1)
- local h = Instance.new("Part")
- h.Name = "Handle"
- h.Parent = owner
- h:BreakJoints()
- h.Size = Vector3.new(2,3,1)
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("Really black")
- h.TopSurface = "Smooth"
- h.BottomSurface = "Smooth"
- h.Transparency = 0
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.1, 1.1, 1.1)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner.Torso
- w1.Part0 = h
- w1.Part1 = owner.Torso
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(-1.5, -1.5, -1)
- local h = Instance.new("Part")
- h.Name = "Handle"
- h.Parent = owner
- h.Size = Vector3.new(2,3,1)
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("Really black")
- h.TopSurface = "Smooth"
- h.BottomSurface = "Smooth"
- h.Transparency = 0
- h:BreakJoints()
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.1, 1.1, 1.1)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner.Torso
- w1.Part0 = h
- w1.Part1 = owner.Torso
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(3.5, -3.5, -1)
- local h = Instance.new("Part")
- h.Name = "Handle"
- h.Parent = owner
- h:BreakJoints()
- h.Size = Vector3.new(2,3,1)
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("Really black")
- h.TopSurface = "Smooth"
- h.BottomSurface = "Smooth"
- h.Transparency = 0
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.1, 1.1, 1.1)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner.Torso
- w1.Part0 = h
- w1.Part1 = owner.Torso
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(-3.5, -3.5, -1)
- owner["Right Arm"].Transparency = 1
- local h = Instance.new("Part")
- h.Name = "Handle"
- h.Parent = owner
- h.Size = Vector3.new(1,2,1)
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("White")
- h.TopSurface = "Smooth"
- h.BottomSurface = "Smooth"
- h:BreakJoints()
- h.Transparency = 0
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.1, 1.1, 1.1)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner ["Right Arm"]
- w1.Part0 = h
- w1.Part1 = owner ["Right Arm"]
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
- owner["Left Arm"].Transparency = 1
- local h = Instance.new("Part")
- h.Name = "Handle"
- h.Parent = owner
- h.Size = Vector3.new(1,2,1)
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("White")
- h.TopSurface = "Smooth"
- h.BottomSurface = "Smooth"
- h:BreakJoints()
- h.Transparency = 0
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.1, 1.1, 1.1)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner ["Left Arm"]
- w1.Part0 = h
- w1.Part1 = owner ["Left Arm"]
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
- owner["Left Leg"].Transparency = 1
- local h = Instance.new("Part")
- h.Name = "Handle"
- h:BreakJoints()
- h.Parent = owner
- h.Size = Vector3.new(1,2,1)
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("White")
- h.TopSurface = "Smooth"
- h.BottomSurface = "Smooth"
- h.Transparency = 0
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.1, 1.1, 1.1)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner ["Left Leg"]
- w1.Part0 = h
- w1.Part1 = owner ["Left Leg"]
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
- owner["Right Leg"].Transparency = 1
- local h = Instance.new("Part")
- h.Name = "Handle"
- h.Parent = owner
- h.Size = Vector3.new(1,2,1)
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("White")
- h:BreakJoints()
- h.TopSurface = "Smooth"
- h.BottomSurface = "Smooth"
- h.Transparency = 0
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.1, 1.1, 1.1)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner ["Right Leg"]
- w1.Part0 = h
- w1.Part1 = owner ["Right Leg"]
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
- owner["Left Leg"].Transparency = 1
- local h = Instance.new("Part")
- h.Name = "Handle"
- h.Parent = owner
- h.Size = Vector3.new(1,2,1)
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("White")
- h:BreakJoints()
- h.TopSurface = "Smooth"
- h.BottomSurface = "Smooth"
- h.Transparency = 0
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.1, 1.1, 1.1)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner ["Left Leg"]
- w1.Part0 = h
- w1.Part1 = owner ["Left Leg"]
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
- owner.Torso.Transparency = 1
- local h = Instance.new("Part")
- h.Name = "Handle"
- h.Parent = owner
- h.Size = Vector3.new(2,2,1)
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("White")
- h.TopSurface = "Smooth"
- h.BottomSurface = "Smooth"
- h:BreakJoints()
- h.Transparency = 0
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.1, 1.1, 1.1)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner.Torso
- w1.Part0 = h
- w1.Part1 = owner.Torso
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
- owner.Head.Transparency = 1
- local h = Instance.new("Part")
- h.Name = "Handle"
- h.Parent = owner
- h.Size = Vector3.new(1,1,1)
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("White")
- h.TopSurface = "Smooth"
- h:BreakJoints()
- h.BottomSurface = "Smooth"
- h.Transparency = 0
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("SpecialMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.3, 1.3, 1.3)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner.Head
- w1.Part0 = h
- w1.Part1 = owner.Head
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
- local h = Instance.new("Part")
- h.Name = "Handle"
- h.Parent = owner
- h.Size = Vector3.new(2,2,1)
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("Mid grey")
- h.TopSurface = "Smooth"
- h.BottomSurface = "Smooth"
- h.Transparency = 0
- h:BreakJoints()
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.1, 1.1, 1.1)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner.Torso
- w1.Part0 = h
- w1.Part1 = owner.Torso
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0.5, -0.5, -1)
- local h = Instance.new("Part")
- h.Name = "Handle"
- h.Parent = owner
- h.Size = Vector3.new(2,2,1)
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("Mid grey")
- h.TopSurface = "Smooth"
- h:BreakJoints()
- h.BottomSurface = "Smooth"
- h.Transparency = 0
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.1, 1.1, 1.1)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner.Torso
- w1.Part0 = h
- w1.Part1 = owner.Torso
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(-0.5, -0.5, -1)
- local h = Instance.new("Part")
- h.Name = "Handle"
- h.Parent = owner
- h.Size = Vector3.new(2,2,1)
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("Mid grey")
- h.TopSurface = "Smooth"
- h.BottomSurface = "Smooth"
- h:BreakJoints()
- h.Transparency = 0
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.1, 1.1, 1.1)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner.Torso
- w1.Part0 = h
- w1.Part1 = owner.Torso
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(1.5, -1.5, -1)
- local h = Instance.new("Part")
- h.Name = "Handle"
- h.Parent = owner
- h.Size = Vector3.new(2,2,1)
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("Mid grey")
- h.TopSurface = "Smooth"
- h.BottomSurface = "Smooth"
- h:BreakJoints()
- h.Transparency = 0
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.1, 1.1, 1.1)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner.Torso
- w1.Part0 = h
- w1.Part1 = owner.Torso
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(-1.5, -1.5, -1)
- local h = Instance.new("Part")
- h.Name = "Handle"
- h.Parent = owner
- h.Size = Vector3.new(2,2,1)
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("Mid grey")
- h.TopSurface = "Smooth"
- h.BottomSurface = "Smooth"
- h.Transparency = 0
- h:BreakJoints()
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.1, 1.1, 1.1)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner.Torso
- w1.Part0 = h
- w1.Part1 = owner.Torso
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(3.5, -3.5, -1)
- local h = Instance.new("Part")
- h.Name = "Handle"
- h.Parent = owner
- h.Size = Vector3.new(2,2,1)
- h.formFactor = "Brick"
- h.BrickColor = BrickColor.new("Mid grey")
- h.TopSurface = "Smooth"
- h.BottomSurface = "Smooth"
- h:BreakJoints()
- h.Transparency = 0
- h.Reflectance = 0
- ---------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = h
- m.Scale = Vector3.new(1.1, 1.1, 1.1)
- -----------------------------------------weldling
- w1 = Instance.new("Weld")
- w1.Parent = owner.Torso
- w1.Part0 = h
- w1.Part1 = owner.Torso
- w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(-3.5, -3.5, -1)
- t = Instance.new("Tool")
- t.Parent = game.Players.yfc.Backpack
- t.Name = "Heal"
- local handlee = Instance.new("Part")
- handlee.Name = "Handle"
- handlee.Parent = t
- handlee.Shape = "Ball"
- handlee.BrickColor = BrickColor.new("New Yeller")
- handlee.Size = Vector3.new(1, 1, 1)
- handlee.TopSurface = "Smooth"
- handlee.BottomSurface = "Smooth"
- handlee.Transparency = 0
- handlee.Reflectance = 0
- -----------------------------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = handlee
- m.Scale = Vector3.new(0.5, 1.0, 0.5)
- -----------------------------------------Brick2
- local brick3 = Instance.new("Part")
- brick3.Name = "Part"
- brick3.Parent = t
- brick3.formFactor = "Plate"
- brick3.BrickColor = BrickColor.new("Neon orange")
- brick3.Size = Vector3.new(2, 1, 1)
- brick3.TopSurface = "Smooth"
- brick3.BottomSurface = "Smooth"
- brick3.Transparency = 0
- brick3.Reflectance = 0
- -----------------------------------------mesh
- m = Instance.new("CylinderMesh")
- m.Parent = brick3
- m.Scale = Vector3.new(1.4, 0.3, 1.4)
- -----------------------------------------weld
- w2 = Instance.new("Weld")
- w2.Parent = handlee
- w2.Part0 = brick3
- w2.Part1 = handlee
- w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, -2, 0)
- -----------------------------------------Brick2
- local brick2 = Instance.new("Part")
- brick2.Name = "Part"
- brick2.Parent = t
- brick2.formFactor = "Plate"
- brick2.BrickColor = BrickColor.new("Bright yellow")
- brick2.Size = Vector3.new(1, 1, 1)
- brick2.TopSurface = "Smooth"
- brick2.BottomSurface = "Smooth"
- brick2.Transparency = 0.5
- brick2.Reflectance = 0
- -----------------------------------------mesh
- m = Instance.new("CylinderMesh")
- m.Parent = brick2
- m.Scale = Vector3.new(5, 10000, 5)
- -----------------------------------------weld
- w2 = Instance.new("Weld")
- w2.Parent = handlee
- w2.Part0 = brick2
- w2.Part1 = handlee
- w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, -2, 0)
- ---------------------Part 2
- ---------------------Part 2
- ---------------------Part 2
- r = game:service("RunService")
- local damage = 100000
- local slash_damage = 100000
- sword = brick3
- Tool = t
- function attack()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- end
- function swordUp()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- end
- function swordOut()
- Tool.GripForward = Vector3.new(0,0,1)
- Tool.GripRight = Vector3.new(0,-1,0)
- Tool.GripUp = Vector3.new(-1,0,0)
- end
- Tool.Enabled = true
- function onActivated()
- if not Tool.Enabled then
- return
- end
- Tool.Enabled = false
- local character = Tool.Parent;
- local humanoid = character.Humanoid
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- attack()
- wait()
- Tool.Enabled = true
- end
- function onEquipped()
- end
- ------part 3
- ------part 3
- ------part 3
- function onTouched(hit)
- h = hit.Parent:findFirstChild("Humanoid")
- if h ~= nil then
- h.MaxHealth = Huge
- end
- end
- Tool.Activated:connect(onActivated)
- Tool.Equipped:connect(onEquipped)
- sword.Touched:connect(onTouched)
- t = Instance.new("Tool")
- t.Parent = game.Players.yfc.Backpack
- t.Name = "Devil"
- local handlee = Instance.new("Part")
- handlee.Name = "Handle"
- handlee.Parent = t
- handlee.Shape = "Ball"
- handlee.BrickColor = BrickColor.new("New Yeller")
- handlee.Size = Vector3.new(1, 1, 1)
- handlee.TopSurface = "Smooth"
- handlee.BottomSurface = "Smooth"
- handlee.Transparency = 0
- handlee.Reflectance = 0
- -----------------------------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = handlee
- m.Scale = Vector3.new(0.5, 1.0, 0.5)
- -----------------------------------------Brick2
- local brick3 = Instance.new("Part")
- brick3.Name = "Part"
- brick3.Parent = t
- brick3.formFactor = "Plate"
- brick3.BrickColor = BrickColor.new("Neon orange")
- brick3.Size = Vector3.new(2, 1, 1)
- brick3.TopSurface = "Smooth"
- brick3.BottomSurface = "Smooth"
- brick3.Transparency = 0
- brick3.Reflectance = 0
- -----------------------------------------mesh
- m = Instance.new("CylinderMesh")
- m.Parent = brick3
- m.Scale = Vector3.new(1.4, 0.3, 1.4)
- -----------------------------------------weld
- w2 = Instance.new("Weld")
- w2.Parent = handlee
- w2.Part0 = brick3
- w2.Part1 = handlee
- w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, -2, 0)
- -----------------------------------------Brick2
- local brick2 = Instance.new("Part")
- brick2.Name = "Part"
- brick2.Parent = t
- brick2.formFactor = "Plate"
- brick2.BrickColor = BrickColor.new("Bright red")
- brick2.Size = Vector3.new(1, 1, 1)
- brick2.TopSurface = "Smooth"
- brick2.BottomSurface = "Smooth"
- brick2.Transparency = 0.5
- brick2.Reflectance = 0
- -----------------------------------------mesh
- m = Instance.new("CylinderMesh")
- m.Parent = brick2
- m.Scale = Vector3.new(5, 10000, 5)
- m.Offset = Vector3.new(0, -5000, 0)
- -----------------------------------------weld
- w2 = Instance.new("Weld")
- w2.Parent = handlee
- w2.Part0 = brick2
- w2.Part1 = handlee
- w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, -2, 0)
- ---------------------Part 2
- ---------------------Part 2
- ---------------------Part 2
- r = game:service("RunService")
- local damage = 100000
- local slash_damage = 100000
- sword = brick3
- Tool = t
- function attack()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- end
- function swordUp()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- end
- function swordOut()
- Tool.GripForward = Vector3.new(0,0,1)
- Tool.GripRight = Vector3.new(0,-1,0)
- Tool.GripUp = Vector3.new(-1,0,0)
- end
- Tool.Enabled = true
- function onActivated()
- if not Tool.Enabled then
- return
- end
- Tool.Enabled = false
- local character = Tool.Parent;
- local humanoid = character.Humanoid
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- attack()
- wait()
- Tool.Enabled = true
- end
- function onEquipped()
- end
- ------part 3
- ------part 3
- ------part 3
- function onTouched(hit)
- h = hit.Parent:findFirstChild("Humanoid")
- if h ~= nil then
- h.Health = 0
- end
- end
- Tool.Activated:connect(onActivated)
- Tool.Equipped:connect(onEquipped)
- sword.Touched:connect(onTouched)
- t = Instance.new("Tool")
- t.Parent = game.Players.yfc.Backpack
- t.Name = "Claw"
- local handlee = Instance.new("Part")
- handlee.Name = "Handle"
- handlee.Parent = t
- handlee.BrickColor = BrickColor.new("Really black")
- handlee.Size = Vector3.new(1, 1, 2)
- handlee.TopSurface = "Smooth"
- handlee.BottomSurface = "Smooth"
- handlee.Transparency = 0
- handlee.Reflectance = 0
- -----------------------------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = handlee
- m.Scale = Vector3.new(0.2, 0.2, 1)
- -----------------------------------------Brick2
- local brick3 = Instance.new("Part")
- brick3.Name = "Part"
- brick3.Parent = t
- brick3.formFactor = "Plate"
- brick3.BrickColor = BrickColor.new("Really black")
- brick3.Size = Vector3.new(1, 1, 2)
- brick3.TopSurface = "Smooth"
- brick3.BottomSurface = "Smooth"
- brick3.Transparency = 0
- brick3.Reflectance = 0
- -----------------------------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = brick3
- m.Scale = Vector3.new(0.2, 0.2, 1)
- -----------------------------------------weld
- w2 = Instance.new("Weld")
- w2.Parent = handlee
- w2.Part0 = brick3
- w2.Part1 = handlee
- w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(-0.3, 0, 0)
- -----------------------------------------Brick2
- local brick4 = Instance.new("Part")
- brick4.Name = "Part"
- brick4.Parent = t
- brick4.formFactor = "Plate"
- brick4.BrickColor = BrickColor.new("Really black")
- brick4.Size = Vector3.new(1, 1, 2)
- brick4.TopSurface = "Smooth"
- brick4.BottomSurface = "Smooth"
- brick4.Transparency = 0
- brick4.Reflectance = 0
- -----------------------------------------mesh
- m = Instance.new("BlockMesh")
- m.Parent = brick4
- m.Scale = Vector3.new(0.2, 0.2, 1)
- -----------------------------------------weld
- w2 = Instance.new("Weld")
- w2.Parent = handlee
- w2.Part0 = brick4
- w2.Part1 = handlee
- w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0.3, 0, 0)
- ---------------------Part 2
- ---------------------Part 2
- ---------------------Part 2
- r = game:service("RunService")
- local damage = 100000
- local slash_damage = 100000
- sword = brick4
- Tool = t
- function attack()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- end
- function swordUp()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- end
- function swordOut()
- Tool.GripForward = Vector3.new(0,0,1)
- Tool.GripRight = Vector3.new(0,-1,0)
- Tool.GripUp = Vector3.new(-1,0,0)
- end
- Tool.Enabled = true
- function onActivated()
- if not Tool.Enabled then
- return
- end
- Tool.Enabled = false
- local character = Tool.Parent;
- local humanoid = character.Humanoid
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- attack()
- wait()
- Tool.Enabled = true
- end
- function onEquipped()
- end
- ------part 3
- ------part 3
- ------part 3
- function onTouched(hit)
- h = hit.Parent:findFirstChild("Humanoid")
- if h ~= nil then
- h:TakeDamage(25)
- end
- end
- Tool.Activated:connect(onActivated)
- Tool.Equipped:connect(onEquipped)
- sword.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement