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,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
- b = game.Players.LocalPlayer
- p = game.Players.LocalPlayer
- ch = p.Character
- h1 = Instance.new("Accessory", ch)
- hh = Instance.new("Part", h1)
- hh.Name = "Handle"
- mm = Instance.new("SpecialMesh", hh)
- mm.MeshId = "rbxassetid://1076171579"
- mm.TextureId = "rbxassetid://1076171180"
- mm.Offset = Vector3.new(0, 0.13, 0)
- h = ch:findFirstChildOfClass("Shirt")
- if h ~= nil then
- h:remove()
- f = ch:findFirstChildOfClass("Pants")
- if f ~= nil then
- f:remove()
- p = Instance.new("Shirt", ch)
- p.ShirtTemplate = "rbxassetid://610537821"
- pp = Instance.new("Pants", ch)
- pp.PantsTemplate = "rbxassetid://789678565"
- end
- end
- ch["Body Colors"].HeadColor = BrickColor.new("Pastel brown")
- ch["Body Colors"].TorsoColor = BrickColor.new("Pastel brown")
- ch["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown")
- ch["Body Colors"].RightArmColor = BrickColor.new("Pastel brown")
- ch["Body Colors"].LeftLegColor = BrickColor.new("Pastel brown")
- ch["Body Colors"].RightLegColor = BrickColor.new("Pastel brown")
- f = Instance.new("Tool", b.Backpack)
- h = Instance.new("Part", f)
- h.Name = "Handle"
- h.Transparency = 1
- m = Instance.new("SpecialMesh", h)
- s = Instance.new("Sound", ch.Head)
- s.Name = "NAME"
- s.SoundId = "rbxassetid://168892708"
- s.Volume = 10
- s.Pitch = 1
- f.Name = "FUSRODAH"
- script.Name = "AnimationPlayerScript"
- script.Parent = f
- -------------------------------------------------mah oe---------------------------------------------------
- function FindAttachedHumanoid(part) --made my mincatx
- local tpart = part
- while tpart.Parent do
- if tpart.Parent:FindFirstChild('Humanoid') then return tpart.Parent.Humanoid end
- tpart = tpart.Parent
- end
- return nil --m1nc@tx
- end
- function MakeValue(class,name,value,parent)
- local temp = Instance.new(class)
- temp.Name = name -- mincatx
- temp.Value = value
- temp.Parent = parent
- return temp
- end
- local Tool = script.Parent
- local Handle = Tool:WaitForChild('Handle')
- local YellSound = ch.Head:WaitForChild('NAME')
- local AniScript = Tool:WaitForChild('AnimationPlayerScript')
- local ThrowAnimation = 'http://www.roblox.com/Asset?ID=111898867'
- local ThrowFace = 'http://www.roblox.com/asset?id=145104475'
- -- mincatx
- local ThrowTable= Instance.new('Part')
- do
- ThrowTable.FormFactor='Custom'
- ThrowTable.Transparency = 1 --mincatx
- ThrowTable.Size = Vector3.new(5, 5, 5)
- ThrowTable.CanCollide = true
- end
- local LookGyro= Instance.new('BodyGyro')
- LookGyro.maxTorque = Vector3.new(0,math.huge,0)
- local ActivateLock=false
- Tool.Activated:connect(function()
- if ActivateLock then return end
- ActivateLock = true --m1ncatx
- local character = Tool.Parent
- local humanoid = character:WaitForChild('Humanoid')
- local torso = character:WaitForChild('Torso')
- local head = character:WaitForChild('Head')
- local face = head:FindFirstChild('face')
- local oldFace ='' --m1nc@tx
- if face then oldFace = face.Texture end
- LookGyro.cframe = torso.CFrame - torso.CFrame.p
- LookGyro.Parent = torso
- local ntable = ThrowTable:Clone()
- MakeValue('StringValue','aniId',ThrowAnimation,AniScript)
- wait(.5)
- ntable.Parent = Workspace
- ntable.CFrame = torso.CFrame+(torso.CFrame.lookVector*3)
- YellSound:play()
- wait(4.5)
- wait(.5) -- mincatx
- if face then
- face.Texture=ThrowFace
- end
- local bAVel = Instance.new('BodyAngularVelocity')
- bAVel.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
- bAVel.angularvelocity = ((torso.CFrame*CFrame.Angles(0,math.pi/2,0)).lookVector*10)
- bAVel.Parent = ntable
- local bVel = Instance.new('BodyVelocity')
- bVel.maxForce = Vector3.new(math.huge,0,math.huge)
- bVel.velocity = (torso.CFrame.lookVector*300)
- bVel.Parent = ntable
- ntable.Touched:connect(function(part) -- minc@tx
- Spawn(function()
- if part.Name == 'Terrain' then return end --m1inc@atx --mincatx
- if part.Anchored then return end
- local hitHumanoid = FindAttachedHumanoid(part)
- if hitHumanoid then
- if hitHumanoid==humanoid then return end
- hitHumanoid.PlatformStand = true
- end -- m1nc@atx
- if part.Size.x*part.Size.y*part.Size.z<=5*9*5 then
- part.Velocity = (Vector3.new((math.random()-.5)*2,math.random(),(math.random()-.5)*2).unit)*5500
- end
- wait(3)
- if hitHumanoid then --mincatx
- hitHumanoid.PlatformStand=false
- hitHumanoid.Jump = true
- end
- end)
- end)
- --m1ncatx
- wait(6)
- LookGyro.Parent = nil
- if face then
- face.Texture=oldFace -- m1nc@tx
- end
- ntable.CanCollide = false
- game.Debris:AddItem(ntable,5)
- ActivateLock = false
- end)
- function FindAttachedHumanoid(part)
- local tpart = part
- while tpart.Parent do
- if tpart.Parent:FindFirstChild('Humanoid') then return tpart.Parent.Humanoid end
- tpart = tpart.Parent
- end
- return nil
- end
- script.ChildAdded:connect(function(nchild)
- local humanoid = FindAttachedHumanoid(script)
- local ani = Instance.new('Animation')
- ani.AnimationId = "rbxassetid://96621537"
- local aniTrack=humanoid:LoadAnimation(ani)
- wait(4.5) -- Wait for the FUS RO DAH -Jasondee1
- aniTrack:Play()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement