Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mult = 1
- local real = Instance.new("SpawnLocation" , Instance.new("WorldModel" , script))
- real.CanCollide = false
- real.Parent = script
- real.Size = Vector3.new(3.5,7,3.5) * mult
- real.CanTouch = false
- real.Enabled = false
- pcall(function()
- real.CFrame = owner.Character.Head.CFrame * CFrame.new(0,0,-8)
- end)
- real.Anchored = true
- real.CanQuery = false
- local mesh = Instance.new("SpecialMesh" , real)
- mesh.MeshId = 'rbxassetid://3054461843'
- mesh.TextureId = 'rbxassetid://3054461863'
- mesh.Scale = Vector3.new(.15,.15,.15)
- local yes = Instance.new("Sound" , real)
- yes.EmitterSize = 25 + (mult/10)
- yes.SoundId = 'rbxassetid://6855412882'
- yes.Volume = 2
- yes.Looped = true
- function chatfunc(text)
- local chat = coroutine.wrap(function()
- pcall(function()
- real:FindFirstChild("TalkingBillBoard"):Destroy()
- end)
- local naeeym2 = Instance.new("BillboardGui" , real)
- naeeym2.Size = UDim2.new(0, 250, 0, 250)
- naeeym2.StudsOffset = Vector3.new(0,3 * mult,0)
- naeeym2.Name = "TalkingBillBoard"
- local tecks2 = Instance.new("TextBox",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.BorderSizePixel = 0
- tecks2.Text = ""
- tecks2.Font = "Bodoni"
- tecks2.TextScaled = true
- tecks2.TextSize = 25
- tecks2.TextStrokeTransparency = 0
- tecks2.TextColor3 = Color3.fromRGB(255,255,255)
- tecks2.TextStrokeColor3 = Color3.fromRGB(0,0,0)
- tecks2.Size = UDim2.new(1,0,0.5,0)
- coroutine.wrap(function()
- for c = 1,string.len(text),1 do
- tecks2.Text = string.sub(text,1,c)
- task.wait(.03)
- end
- end)()
- end)
- chat()
- end
- local re = Instance.new("RemoteEvent" , real)
- re.Name = "NoMoreSayingCussWordsEvent"
- re.OnServerEvent:Connect(function(plr, ld)
- mesh.Scale = (Vector3.new(.15,.15,.15) * mult) * (ld/500)
- end)
- NLS([[
- local re = workspace:FindFirstChild("NoMoreSayingCussWordsEvent", true)
- local sound = re.Parent.Sound
- re.Name = "RemoteEvent"
- while task.wait() do
- pcall(function()
- if sound.isPlaying == true then
- re:FireServer(sound.PlaybackLoudness)
- end
- end)
- end
- ]], owner.PlayerGui)
- yes:Play()
- local ignore = {}
- local function FindNearestPlayer(position, range, ignorelist)
- local found
- local maxdistance = range
- for _,plyr in pairs(game:GetService("Players"):GetPlayers()) do
- coroutine.wrap(function()
- pcall(function()
- if not table.find(ignorelist, plyr) then
- local distance = (position - plyr.Character:FindFirstChildWhichIsA("BasePart").Position).Magnitude
- if distance < maxdistance then
- found = plyr
- maxdistance = distance
- end
- end
- end)
- end)()
- end
- return found
- end
- coroutine.wrap(function()
- while task.wait() do
- pcall(function()
- local g = FindNearestPlayer(real.CFrame.p, 1000, ignore)
- if g then
- local targ = g.Character:FindFirstChildWhichIsA("BasePart")
- real.CFrame = real.CFrame:Lerp(targ.CFrame * CFrame.new(-3,0,-10 * mult), .05)
- real.CFrame = CFrame.new(real.CFrame.p, targ.CFrame.p) * CFrame.Angles(0,math.rad(180),0)
- end
- end)
- end
- end)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement