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
- --Windows95/FR34KY
- --my scripting sux
- --also vouch pls
- --Edited to be more fe
- --ragdoll sometimes does not work
- debounce = 0;
- local player = owner
- repeat wait() until player.Character.Humanoid
- local humanoid = owner.Character.Humanoid
- --owner.Character.Shirt.ShirtTemplate='rbxassetid://473465498'
- local player=owner;
- local char=owner.Character;
- local humanoid = player.Character.Humanoid;
- Tool=Instance.new('Tool', owner.Backpack);
- Tool.GripRight=Vector3.new(-0.816, 0, 0.577);
- Tool.GripUp=Vector3.new(-0.027, 0.996, -0.089);
- Tool.GripPos=Vector3.new(-0.3, -0.4, 0.4);
- Tool.GripForward=Vector3.new(-1, 0, -0); --0.485, 0.14, -0.863
- Tool.Name='Suicide';
- Handle=Instance.new('Part', Tool);
- Handle.Name = 'Handle';
- Handle.BrickColor=BrickColor.new('Really black')
- Handle.Size=Vector3.new(0.26, 1.11, 4.85);
- Handle.Position=Vector3.new(-18.53, 0.555, -16.825)
- gunfire=Instance.new('Part', Tool)
- gunfire.Name='GunFire'
- gunfire.Size=Vector3.new(0.2, 0.2, 0.2)
- gunfire.Transparency=1
- gunfire.Position=Vector3.new(-18.56, 1.1, -19.35)
- gunfirefx=Instance.new('BillboardGui', gunfire)
- gunfirefx.Enabled=false
- gunfirefx.Adornee = gunfire
- gunfirefx.Size=UDim2.new(1.1, 0, 1.1, 0)
- gunfirefx2=Instance.new('ImageLabel', gunfirefx)
- gunfirefx2.Image='http://www.roblox.com/asset/?id=117472237'
- gunfirefx2.BackgroundTransparency=1
- gunfirefx2.Size=UDim2.new(1.2, 0, 1.2, 0)
- shootsound=Instance.new('Sound', char.Torso)
- shootsound.Volume=8
- shootsound.SoundId='rbxassetid://230622620'
- c4mesh=Instance.new('SpecialMesh', Handle);
- c4mesh.MeshType = 'FileMesh';
- c4mesh.MeshId='http://www.roblox.com/asset/?id=95356090';
- c4mesh.TextureId='http://www.roblox.com/asset/?id=95387789';
- c4mesh.Scale=Vector3.new(1.8, 1.8, 1.8);
- local anim5 = Instance.new("Animation", player.Character)
- anim5.AnimationId = "http://www.roblox.com/asset/?id=95383474"
- local playAnim10 = humanoid:LoadAnimation(anim5)
- Tool.GripRight=Vector3.new(-0.816, 0, 0.577)
- function equipped()
- wait()
- playAnim10:Play()
- end
- function unequipped()
- wait()
- playAnim10:Stop()
- end
- Tool.Equipped:connect(equipped)
- Tool.Unequipped:connect(unequipped)
- light=Instance.new('PointLight', Handle);
- light.Color = Color3.new(255, 255, 0)
- light.Range=10;
- light.Enabled=false;
- function Shoot()
- --Credit to CyclicaIIy for this amazing script
- LocalPlayer = owner
- --owner.Character.Humanoid:MoveTo(owner.Character.HumanoidRootPart.Position + owner.Character.HumanoidRootPart.CFrame.lookVector * 10)
- --owner.Character.Humanoid.Jump = true
- wait(0.5)
- owner.Character.Head.Splash.Playing = true shootsound:Play()
- owner.Character.Humanoid.PlatformStand = true
- if owner.Character.Torso then
- local bambam = Instance.new("BodyThrust")
- bambam.Parent = owner.Character.HumanoidRootPart
- bambam.Force = Vector3.new(0, 1300, 0)
- bambam.Location = owner.Character.HumanoidRootPart.Position
- else
- local bambamm = Instance.new("BodyThrust")
- bambamm.Parent = owner.Character.HumanoidRootPart
- bambamm.Force = Vector3.new(0, 1300, 0)
- bambamm.Location = owner.Character.HumanoidRootPart.Position
- wait(0.1)
- bambamm:Destroy()
- wait(5)
- owner.Character.Humanoid.Health = 0
- end
- function Iterate(instance, func)
- for i, v in next, instance:GetChildren() do
- func(v)
- end
- end
- limbs = {
- ["Right Leg"] = true;
- ["Right Arm"] = true;
- ["Left Leg"] = true;
- ["Left Arm"] = true;
- }
- Iterate(owner.Character, function(v)
- if v:IsA("BasePart") then
- local attachment = Instance.new("Attachment")
- attachment.Parent = v
- attachment.Name = (v.Name .. "[Attachment]")
- if limbs[v.Name] then
- attachment.Position = Vector3.new(0, v.Size.Y/2, 0)
- elseif v.Name == "Head" then
- attachment.Position = Vector3.new(0, -v.Size.Y/2, 0)
- attachment.Rotation = Vector3.new(0, 0, -90)
- end
- end
- end)
- local leftLegAttachment = Instance.new("Attachment")
- leftLegAttachment.Position = Vector3.new(-.5, -1, 0)
- leftLegAttachment.Rotation = Vector3.new(0, -90, 0)
- local rightLegAttachment = Instance.new("Attachment")
- rightLegAttachment.Position = Vector3.new(.5, -1, 0)
- rightLegAttachment.Rotation = Vector3.new(0, -90, 0)
- rightLegAttachment.Parent, leftLegAttachment.Parent = owner.Character.Torso, owner.Character.Torso
- jointAttachments = {
- ['Head'] = {
- ['Attachment0'] = owner.Character.Torso['NeckAttachment'];
- ['Attachment1'] = owner.Character.Head['Head[Attachment]'];
- };
- ['Left Arm'] = {
- ['Attachment0'] = owner.Character.Torso['LeftCollarAttachment'];
- ['Attachment1'] = owner.Character['Left Arm']['Left Arm[Attachment]'];
- };
- ['Right Arm'] = {
- ['Attachment0'] = owner.Character.Torso['RightCollarAttachment'];
- ['Attachment1'] = owner.Character['Right Arm']['Right Arm[Attachment]'];
- };
- ['Left Leg'] = {
- ['Attachment0'] = leftLegAttachment;
- ['Attachment1'] = owner.Character['Left Leg']['Left Leg[Attachment]'];
- };
- ['Right Leg'] = {
- ['Attachment0'] = rightLegAttachment;
- ['Attachment1'] = owner.Character['Right Leg']['Right Leg[Attachment]'];
- };
- }
- owner.Character.Humanoid.PlatformStand = true
- Iterate(owner.Character, function(v)
- if v:IsA("BasePart") then
- if jointAttachments[v.Name] then
- local ballSocketJoint = Instance.new("BallSocketConstraint")
- ballSocketJoint.Parent = v
- ballSocketJoint.Radius = 0.15
- ballSocketJoint.Attachment0, ballSocketJoint.Attachment1 = jointAttachments[v.Name]['Attachment0'], jointAttachments[v.Name]['Attachment1']
- end
- end
- end)
- Iterate(owner.Character.Torso, function(v)
- if v:IsA("Motor") then
- v:Remove()
- end
- end)
- end
- Tool.Activated:connect(Shoot)
- --ragdoll
- print("XDXDXD")
- --You don't need to edit this!
- Character = player.Character
- Humanoid = Character.Humanoid
- Torso = Character.Torso
- mode = Instance.new("Model")
- mode.Name = ""
- mode.Parent = game.Workspace
- function OnDeath()
- print("Death Suicide")
- end
- Humanoid.Died:connect(OnDeath)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement