Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print'https://pastebin.com/MtP4Trnj'
- local function make_vis(pl_1)
- local pchar = pl_1.Character
- if not pchar then
- pl_1:LoadCharacter()
- wait(.1)
- end
- local phead = pchar:FindFirstChild'Head'
- if not phead then
- pl_1:LoadCharacter()
- wait(.1)
- phead = pchar:FindFirstChild'Head'
- end
- local pre_1 = 'rbxassetid://'
- local globalsound,globalpart,at_3,at_4
- local function Make_VP()
- local sound = Instance.new("Sound",phead)
- sound.Volume = 2.5
- sound.SoundId = pre_1..'3250100544'
- sound.Looped = true
- sound.Name = 'sound_inf'
- sound:Play()
- local part = Instance.new("Part",workspace)
- part.Name = '∞vis'
- part.Massless = true
- part.Position = Vector3.new(0,10,0)
- part.CanCollide = true
- part.Shape = Enum.PartType.Ball
- part.BrickColor = BrickColor.new("Really red")
- part.Material = Enum.Material.Glass
- local at1 = Instance.new("Attachment",part)
- local at2 = Instance.new("Attachment",phead)
- at2.Position = Vector3.new(0,5,0)
- at2.Visible = false
- local apos = Instance.new("AlignPosition",at2)
- apos.Attachment0 = at1
- apos.Attachment1 = at2
- apos.Responsiveness = 100
- apos.MaxForce = 30000
- apos.ApplyAtCenterOfMass = true
- local at3 = Instance.new('Attachment',part)
- at3.Position = Vector3.new(0,2,0)
- local at4 = Instance.new('Attachment',part)
- at4.Position = Vector3.new(0,-2,0)
- local t = Instance.new("Trail",at3)
- t.Attachment0 = at3
- t.Attachment1 = at4
- t.Lifetime = 3
- return sound,part,at3,at4
- end
- globalsound,globalpart,at_3,at_4 = Make_VP()
- local function Get_Components_Of_Mouse(player)
- local pchar = player.Character
- if pchar then
- local Remote = pchar:FindFirstChild('∞RE_Mouse')
- if not Remote then
- Remote = Instance.new("RemoteEvent",pchar)
- Remote.Name = 'RE_Mouse'
- end
- Remote.Parent = NLS(
- [[
- local lp = game:GetService'Players'.LocalPlayer
- local players = game:GetService'Players'
- local mouse = lp:GetMouse()
- local runs = game:GetService'RunService'
- wait(1)
- local lchar = players[lp.Name].Character
- local re = script.Parent:FindFirstChild('RE_Mouse',true)
- local sound = lchar:FindFirstChild('sound_inf',true)
- if sound then
- runs.Stepped:Connect(function()
- if re then
- local transmitt = sound.PlaybackLoudness / 100
- if transmitt<.1 then
- transmitt = .1
- end
- re:FireServer('SoundSize',transmitt)
- else
- print'i1'
- end
- end)
- else
- print'cant find sound'
- end
- ]],pchar )
- return Remote
- else
- error'Best to actually put your character in the game.'
- end
- end
- local RE = Get_Components_Of_Mouse(pl_1)
- -- Function returns Remote event
- RE.OnServerEvent:Connect(function(pl,arg1,arg2)
- if pl==pl_1 then
- if arg1=='SoundSize'and globalpart and globalsound and at_3 and at_4 then
- globalpart.Size = Vector3.new(arg2,arg2,arg2)
- at_3.Position = Vector3.new(0,arg2 / 2 ,0)
- at_4.Position = Vector3.new(0,arg2 /-2, 0)
- else
- print(arg1,globalpart,globalsound,at_3,at_4)
- end
- end
- end)
- end
- make_vis(owner)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement