Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[===[
- Howdy there!
- This is Mr.Skeltal's Doot Doot Script!
- Made by saltyturtle!
- v3rm: https://v3rmillion.net/member.php?action=profile&uid=442267
- Total Lines: 187
- --]===]
- 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("never gonna give you up")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
- wait(2)
- 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"))
- Tool0 = Instance.new("Tool")
- Script1 = Instance.new("Script")
- LocalScript2 = Instance.new("LocalScript")
- Script3 = Instance.new("Script")
- RemoteFunction4 = Instance.new("RemoteFunction")
- Sound5 = Instance.new("Sound")
- Part6 = Instance.new("Part")
- SpecialMesh7 = Instance.new("SpecialMesh")
- Part8 = Instance.new("Part")
- ParticleEmitter9 = Instance.new("ParticleEmitter")
- Tool0.Name = "Trumpet"
- Tool0.Parent = mas
- Tool0.TextureId = "rbxassetid://302280633"
- Tool0.ToolTip = "Doot Doot"
- Tool0.CanBeDropped = false
- Script1.Parent = Tool0
- table.insert(cors,sandbox(Script1,function()
- script.Parent.Activated:connect(function()
- script.Parent.GripForward = Vector3.new(0, -0.985, 0.173)
- script.Parent.GripPos = Vector3.new(1.366, 0.356, 0.844)
- script.Parent.GripRight = Vector3.new(1, -0, -0)
- script.Parent.GripUp = Vector3.new(-0, -0.173, -0.985)
- script.Parent.doot:Play()
- wait(1)
- script.Parent.Part.Inner.Enabled = true
- wait(.3)
- script.Parent.Part.Inner.Enabled = false
- script.Parent.GripForward = Vector3.new(0, 0, -1)
- script.Parent.GripPos = Vector3.new(0, 0, 0)
- script.Parent.GripRight = Vector3.new(1, 0, 0)
- script.Parent.GripUp = Vector3.new(0, 1, 0)
- end)
- end))
- LocalScript2.Name = "ToolWeld"
- LocalScript2.Parent = Tool0
- table.insert(cors,sandbox(LocalScript2,function()
- local JointsService = game:GetService('JointsService')
- local Tool = Tool0
- local Handle = Tool:WaitForChild ('Handle')
- local FilteringEnabled = game.Workspace.FilteringEnabled
- function Weld()
- local function WeldParts(Part, handle)
- Part.Anchored = false
- local weld = Instance.new("ManualWeld")
- weld.Part0 = handle
- weld.Part1 = Part
- weld.C0 = handle.CFrame:inverse()
- weld.C1 = Part.CFrame:inverse()
- weld.Parent = JointsService
- end
- for _,obj in pairs (Tool:GetChildren()) do
- if obj:IsA ("BasePart") or obj:IsA ("UnionOperation") then
- WeldParts (obj, Handle)
- end
- end
- end
- Tool.Equipped:connect(function()
- if FilteringEnabled == false then
- Weld()
- end
- end)
- end))
- Script3.Name = "FilteringEnabled"
- Script3.Parent = LocalScript2
- Script3.Disabled = true
- table.insert(cors,sandbox(Script3,function()
- local JointsService = game:GetService('JointsService')
- local Tool = script.Parent.Parent
- local Handle = Tool:WaitForChild ('Handle')
- local Function = script.Parent:WaitForChild('RemoteFunction')
- local FilteringEnabled = game.Workspace.FilteringEnabled
- function Weld()
- local function WeldParts(Part, handle)
- Part.Anchored = false
- local weld = Instance.new("ManualWeld")
- weld.Part0 = handle
- weld.Part1 = Part
- weld.C0 = handle.CFrame:inverse()
- weld.C1 = Part.CFrame:inverse()
- weld.Parent = JointsService
- end
- for _,obj in pairs (Tool:GetChildren()) do
- if obj:IsA ("BasePart") or obj:IsA ("UnionOperation") then
- WeldParts (obj, Handle)
- end
- end
- end
- function Function.OnServerInvoke()
- Weld()
- end
- end))
- RemoteFunction4.Parent = LocalScript2
- Sound5.Name = "doot"
- Sound5.Parent = Tool0
- Sound5.SoundId = "rbxassetid://280066782"
- Part6.Name = "Handle"
- Part6.Parent = Tool0
- Part6.Rotation = Vector3.new(120, 0, 0)
- Part6.Size = Vector3.new(4, 1, 2)
- Part6.CFrame = CFrame.new(-6, 7.125, -8.78349209, 1, 0, 0, 0, -0.500000238, -0.866025388, 0, 0.866025388, -0.500000238)
- Part6.BottomSurface = Enum.SurfaceType.Smooth
- Part6.TopSurface = Enum.SurfaceType.Smooth
- Part6.Position = Vector3.new(-6, 7.125, -8.78349209)
- Part6.Orientation = Vector3.new(60, 180, 180)
- SpecialMesh7.Parent = Part6
- SpecialMesh7.MeshId = "rbxassetid://32316679"
- SpecialMesh7.TextureId = "rbxassetid://32316694"
- SpecialMesh7.MeshType = Enum.MeshType.FileMesh
- Part8.Parent = Tool0
- Part8.Transparency = 1
- Part8.Rotation = Vector3.new(120, 0, 0)
- Part8.Size = Vector3.new(0.799999952, 0.100000024, 0.900000036)
- Part8.CFrame = CFrame.new(-6, 7.72990179, -9.53121567, 1, 0, 0, 0, -0.500000238, -0.866025388, 0, 0.866025388, -0.500000238)
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.Position = Vector3.new(-6, 7.72990179, -9.53121567)
- Part8.Orientation = Vector3.new(60, 180, 180)
- ParticleEmitter9.Name = "Inner"
- ParticleEmitter9.Parent = Part8
- ParticleEmitter9.Size = NumberSequence.new(0.30000001192093,0.30000001192093)
- ParticleEmitter9.Color = ColorSequence.new(Color3.new(0.972549, 0.972549, 0.972549),Color3.new(0.972549, 0.972549, 0.972549))
- ParticleEmitter9.Enabled = false
- ParticleEmitter9.LightEmission = 0.40000000596046
- ParticleEmitter9.Texture = "rbxassetid://302280633"
- ParticleEmitter9.ZOffset = 0.5
- ParticleEmitter9.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
- ParticleEmitter9.Rate = 1000
- ParticleEmitter9.Speed = NumberRange.new(8, 8)
- ParticleEmitter9.Color = ColorSequence.new(Color3.new(0.972549, 0.972549, 0.972549),Color3.new(0.972549, 0.972549, 0.972549))
- Tool0.Parent = game.Players.LocalPlayer.Backpack
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Add Comment
Please, Sign In to add comment