Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait()
- local r,e=ypcall(function()
- local Plr=game.Players.LocalPlayer
- script.Parent=Plr.Backpack
- script.Parent=nil
- Plr.Character=nil
- Plr.Parent=nil
- local rot=.0001
- local rot2=.01
- local CMesh=nil
- local CParent=nil
- local Mod=nil
- local STrail=true
- local Meshs={
- {Enabled=false,Name='doge',ID='http://www.roblox.com/asset/?id=151778863 ',Decal='http://www.roblox.com/asset/?id=151778895'};
- {Enabled=false,Name='fedora',ID='http://www.roblox.com/asset/?id=1285237',Decal='http://www.roblox.com/asset/?id=185909976'};
- {Enabled=false,Name='dominus',ID='http://www.roblox.com/asset/?id=21057410',Decal='http://www.roblox.com/asset/?id=124799745'};
- {Enabled=false,Name='crown',ID='http://www.roblox.com/asset/?id=1323306',Decal='http://www.roblox.com/asset/?id=1323305'};
- {Enabled=true,Name='pumpkin',ID='http://www.roblox.com/asset/?id=16973748',Decal='http://www.roblox.com/asset/?id=132304530'};
- {Enabled=false,Name='cyrstal',ID='http://www.roblox.com/asset/?id=51684149',Decal='http://www.roblox.com/asset/?id=157005821'};
- {Enabled=false,Name='helmet',ID='http://www.roblox.com/asset/?id=1172117',Decal='http://www.roblox.com/asset/?id=1172146'};
- }
- function AddModel()
- RemoveModel()
- local TMod=Instance.new('Model',workspace)
- TMod.Name='NilProbeModel'
- TMod.Changed:connect(function()
- if not workspace:FindFirstChild(TMod.Name) then
- AddModel()
- end
- end)
- Mod=TMod
- end
- function Probe()
- AddModel()
- RemoveProbe()
- local P=Instance.new('Part',Mod)
- P.CanCollide=false
- P.Anchored=true
- P.Locked=true
- P.Transparency=0
- P.Name='Orb'
- CParent=P
- local Mesh=Instance.new('SpecialMesh',P)
- Mesh.MeshType='FileMesh'
- Mesh.Scale=Vector3.new(6,6,6)
- table.foreach(Meshs,function(i,v)
- if v.Enabled then
- Mesh.MeshId=v.ID
- Mesh.Name=v.Name..':ORB_MESH'
- Mesh.TextureId=v.Decal
- else
- v.Enabled=false
- end
- end)
- CMesh=Mesh
- P.Changed:connect(function()
- if not workspace:FindFirstChild(Mod.Name) then
- Probe()
- end
- end)
- end
- function RemoveProbe()
- pcall(function() return CMesh:remove() end)
- end
- function RemoveModel()
- pcall(function()
- for _,v in pairs(workspace:GetChildren()) do
- if v.ClassName=='Model' and v.Name=='NilProbeModel' then
- v:remove()
- end
- end
- return Mod:remove()
- end)
- end
- function Trail()
- coroutine.resume(coroutine.create(function()
- if STrail then
- local P=Instance.new('Part',Mod)
- P.CanCollide=false
- P.Anchored=true
- P.Name='ProbeTrail'
- P.Locked=true
- P.Transparency=0
- rot=rot+rot2
- P.CFrame=workspace.CurrentCamera.Focus*CFrame.Angles(rot,rot,rot)
- local Mesh=Instance.new('SpecialMesh',P)
- Mesh.MeshType='FileMesh'
- Mesh.Scale=Vector3.new(6,6,6)
- table.foreach(Meshs,function(i,v)
- if v.Enabled then
- Mesh.MeshId=v.ID
- Mesh.Name=v.Name..':ORB_MESH:TRAIL'
- Mesh.TextureId=v.Decal
- else
- v.Enabled=false
- end
- end)
- for i = 0,1,.01 do
- P.Transparency=P.Transparency+.1
- Mesh.Scale=Mesh.Scale-Vector3.new(.1,.1,.1)
- game:GetService("RunService").RenderStepped:wait()
- end
- return P:remove()
- end
- end))
- end
- Probe()
- function NewMesh(NMesh)
- coroutine.resume(coroutine.create(function()
- for _,v in pairs(Meshs) do
- v.Enabled=false
- if v.Name == NMesh then
- v.Enabled=true
- STrail=true
- end
- end
- Probe()
- end))
- end
- Plr.Chatted:connect(function(msg)
- if not msg:find('/e ') then
- if msg:find('/trail') then
- if Trail then Trail=false else Trail=true end
- elseif msg:find('/doge') then
- NewMesh('doge')
- elseif msg:find('/fedora') then
- NewMesh('fedora')
- elseif msg:find('/dominus') then
- NewMesh('dominus')
- elseif msg:find('/crown') then
- NewMesh('crown')
- elseif msg:find('/pumpkin') then
- NewMesh('pumpkin')
- elseif msg:find('/cyrstal') then
- NewMesh('cyrstal')
- elseif msg:find('/helmet') then
- NewMesh('helmet')
- else return
- end
- else
- --ChatGUI coming soon.
- end
- end)
- game:GetService("RunService").RenderStepped:connect(function()
- coroutine.resume(coroutine.create(function()
- rot=rot+rot2
- CParent.CFrame = workspace.CurrentCamera.Focus*CFrame.Angles(rot,rot,rot)
- Trail()
- end))
- end)
- end)
- if not r then print(e) end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement