Advertisement
Voldemare

rock buddy script

Mar 2nd, 2021 (edited)
794
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.32 KB | None | 0 0
  1. function createthunderbolt(char)
  2.     wait(2)
  3.     local a=Instance.new"Model"
  4.     a.Parent = workspace
  5.     a.Name="LightningBolt"
  6.     a.WorldPivot=CFrame.new(-3.224550724029541,65.30120086669922,-17.39071273803711,0.9888679385185242,-0.14658036828041077,-0.025582071393728256,0.14834600687026978,0.9845581650733948,0.0929446816444397,0.011563170701265335,-0.09570501744747162,0.9953425526618958)
  7.     local b=Instance.new"Part"
  8.     b.Name="AlignToTorso"
  9.     b.Anchored=true
  10.     b.BottomSurface=0
  11.     b.CanCollide=false
  12.     b.Transparency=1
  13.     b.TopSurface=0
  14.     b.Size=Vector3.new(2,2,2)
  15.     b.CFrame=CFrame.new(-5.865102767944336,10.201129913330078,-4.670000076293945,0.05370539426803589,0,0.9985569715499878,0,1,0,-0.9985569715499878,0,0.05370539426803589)
  16.     b.Parent=a
  17.     local c=Instance.new"Sound"
  18.     c.Name="lightning_bolt"
  19.     c.TimePosition=1.5037649
  20.     c.RollOffMaxDistance=100
  21.     c.Volume=3
  22.     c.Playing=true
  23.     c.MaxDistance=100
  24.     c.SoundId="rbxassetid://821439273"
  25.     c.Parent=b
  26.     local h=Instance.new"Part"
  27.     h.Anchored=true
  28.     h.BottomSurface=0
  29.     h.CanCollide=false
  30.     h.TopSurface=0
  31.     h.Color=Color3.fromRGB(255,255,0)
  32.     h.Material=288
  33.     h.Size=Vector3.new(15,50,15)
  34.     h.CFrame=CFrame.new(-0.048966001719236374,25.718717575073242,-23.11358070373535,0.9927911162376404,0.11985733360052109,0,-0.11985733360052109,0.9927911162376404,-0,-0,0,1)
  35.     h.Parent=a
  36.     local i=Instance.new"Part"
  37.     i.Anchored=true
  38.     i.BottomSurface=0
  39.     i.CanCollide=false
  40.     i.TopSurface=0
  41.     i.Color=Color3.fromRGB(255,255,0)
  42.     i.Material=288
  43.     i.Size=Vector3.new(15,50,15)
  44.     i.CFrame=CFrame.new(-0.9497449994087219,71.27046203613281,-25.64899253845215,0.9888679385185242,-0.14658036828041077,-0.025582071393728256,0.14834600687026978,0.9845581650733948,0.0929446816444397,0.011563170701265335,-0.09570501744747162,0.9953425526618958)
  45.     i.Parent=a
  46.     local j=Instance.new"Part"
  47.     j.Anchored=true
  48.     j.BottomSurface=0
  49.     j.CanCollide=false
  50.     j.TopSurface=0
  51.     j.Color=Color3.fromRGB(255,255,0)
  52.     j.Material=288
  53.     j.Size=Vector3.new(15,50,15)
  54.     j.CFrame=CFrame.new(-3.8206300735473633,114.46715545654297,-24.05675506591797,0.9989611506462097,-0.0024503450840711594,-0.04550426825881004,-0.0036558243446052074,0.9910256266593933,-0.13362222909927368,0.045423317700624466,0.1336497664451599,0.9899870753288269)
  55.     j.Parent=a
  56.     local e=Instance.new"WeldConstraint"
  57.     e.Parent=b
  58.     local f=Instance.new"WeldConstraint"
  59.     f.Parent=b
  60.     local g=Instance.new"WeldConstraint"
  61.     g.Parent=b
  62.     e.Part1=i
  63.     e.Part0=b
  64.     f.Part1=j
  65.     f.Part0=b
  66.     g.Part1=h
  67.     g.Part0=b
  68.     a.PrimaryPart=b
  69.     a:MoveTo(char.HumanoidRootPart.Position)
  70.  
  71.  
  72.  
  73.     for i, v in pairs(a:GetChildren()) do
  74.         v.CanCollide = false
  75.         v.Anchored = true
  76.     end
  77.     game.Chat:Chat(b, "EW, NO", Enum.ChatColor.Red)
  78.     c:Play()
  79.     game.Debris:AddItem(a, 6)
  80.     char.Humanoid.Health = (-5)
  81.     spawn(function()
  82.         wait(4)
  83.         game.Chat:Chat(b, "listen i wasnt able to align the thunderbolt right had too much techinal difficulites", Enum.ChatColor.Red)
  84.         local props = {}
  85.         props.Transparency = 1
  86.         local info = TweenInfo.new(2, Enum.EasingStyle.Linear, Enum.EasingDirection.In)
  87.         for i, v in pairs(a:GetChildren()) do
  88.             if v:IsA("BasePart") then
  89.                 game:GetService("TweenService"):Create(v, info, props):Play()
  90.             end
  91.         end
  92.     end)
  93. end
  94.  
  95. WORTHYPEOPLE = {"voldemare", "stevegamer8bit", "Godly_World", "Puugupoiiss", "volligator", "oilo14"}
  96. local function ihatelife(plr)
  97.     plr.Chatted:Connect(function(msg)
  98.         if msg:match("dear lord") and msg:match("give") and msg:match("trustworthy partner") then
  99.             if table.find(WORTHYPEOPLE, plr.Name) then
  100.                 local PartBuddy = Instance.new("Part")
  101.                 PartBuddy.Name = "PartBuddy"
  102.                 PartBuddy.BottomSurface = Enum.SurfaceType.Smooth
  103.                 PartBuddy.TopSurface = Enum.SurfaceType.Smooth
  104.                 PartBuddy.Color = Color3.fromRGB(91, 93, 105)
  105.                 PartBuddy.Material = Enum.Material.Ice
  106.                 PartBuddy.Size = Vector3.new(6, 6, 6)
  107.                 PartBuddy.CFrame = CFrame.new(-130.77375793457, 1, -131.76510620117)
  108.                 PartBuddy.Shape = Enum.PartType.Ball
  109.  
  110.                 local BillboardGui = Instance.new("BillboardGui")
  111.                 BillboardGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  112.                 BillboardGui.LightInfluence = 1
  113.                 BillboardGui.Size = UDim2.new(0, 200, 0, 50)
  114.                 BillboardGui.ClipsDescendants = true
  115.                 BillboardGui.MaxDistance = 25
  116.                 BillboardGui.Active = true
  117.                 BillboardGui.StudsOffset = Vector3.new(0, 2, 0)
  118.                 BillboardGui.Parent = PartBuddy
  119.  
  120.                 local TextLabel = Instance.new("TextLabel")
  121.                 TextLabel.Size = UDim2.new(0, 200, 0, 50)
  122.                 TextLabel.BackgroundTransparency = 1
  123.                 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  124.                 TextLabel.FontSize = Enum.FontSize.Size14
  125.                 TextLabel.TextStrokeTransparency = 0
  126.                 TextLabel.TextSize = 14
  127.                 TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  128.                 TextLabel.Text = "OBESE FRIEND ROCK"
  129.                 TextLabel.TextWrap = true
  130.                 TextLabel.Font = Enum.Font.SourceSans
  131.                 TextLabel.TextWrapped = true
  132.                 TextLabel.TextScaled = true
  133.                 TextLabel.Parent = BillboardGui
  134.  
  135.                 local Music = Instance.new("Sound")
  136.                 Music.Name = "Music"
  137.                 Music.Playing = true
  138.                 Music.Looped = true
  139.                 Music.SoundId = "rbxassetid://313451142"
  140.                 Music.Parent = PartBuddy
  141.                 Music.Volume = 4.5
  142.  
  143.                 local RopeConstraint = Instance.new("RopeConstraint")
  144.                 RopeConstraint.Length = 7.5
  145.                 RopeConstraint.Parent = PartBuddy
  146.  
  147.                 local Attachment = Instance.new("Attachment")
  148.                 Attachment.WorldPosition = Vector3.new(-130.77375793457, 1, -131.76510620117)
  149.                 Attachment.WorldCFrame = CFrame.new(-130.77375793457, 1, -131.76510620117)
  150.                 Attachment.Parent = PartBuddy
  151.  
  152.                 Attachment.WorldPosition = PartBuddy.Position
  153.  
  154.                 local a=Instance.new("Sound", PartBuddy)
  155.                 a.Name="Baby Crying Upset 6 Months Old 2 (SFX)"
  156.                 a.Volume=8
  157.                 a.SoundId="rbxassetid://9113234666"
  158.  
  159.                 local b=Instance.new("Sound", PartBuddy)
  160.                 b.Name="SpongeBob sad affect for zo "
  161.                 b.Volume=10
  162.                 b.SoundId="rbxassetid://8904888220"
  163.  
  164.  
  165.  
  166.                 if plr.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
  167.                     RopeConstraint.Attachment0 = plr.Character.HumanoidRootPart.RootRigAttachment
  168.                     RopeConstraint.Attachment1 = Attachment
  169.                 elseif plr.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
  170.                     RopeConstraint.Attachment0 = plr.Character.HumanoidRootPart.RootAttachment
  171.                     RopeConstraint.Attachment1 = Attachment
  172.                 end
  173.  
  174.                 PartBuddy.Position = plr.Character.HumanoidRootPart.Position
  175.  
  176.                 PartBuddy.Parent = workspace
  177.  
  178.                 local THISCHARACTER = plr.Character
  179.                 THISCHARACTER:FindFirstChild("Humanoid").Died:Connect(function()
  180.                     TextLabel.Text = "disowned rock"
  181.                     PartBuddy.Shape = Enum.PartType.Cylinder
  182.                     local props = {}
  183.                     props.Size = Vector3.new(2.5, 3.45, 2.5)
  184.                     game:GetService("TweenService"):Create(PartBuddy, TweenInfo.new(1, Enum.EasingStyle.Bounce, Enum.EasingDirection.In), props):Play()
  185.                     a:Play()
  186.                     b:Play()
  187.                 end)
  188.             else
  189.                 createthunderbolt(plr.Character)
  190.             end
  191.         end
  192.     end)
  193. end
  194. game.Players.PlayerAdded:Connect(function(plr)
  195.     ihatelife(plr)
  196. end)
  197. for i, plr in pairs(game.Players:GetChildren()) do
  198.     ihatelife(plr)
  199. end
  200. print("yup v3")
  201. --[[
  202. local plr = owner
  203.                 local PartBuddy = Instance.new("Part")
  204.                 PartBuddy.Name = "PartBuddy"
  205.                 PartBuddy.BottomSurface = Enum.SurfaceType.Smooth
  206.                 PartBuddy.TopSurface = Enum.SurfaceType.Smooth
  207.                 PartBuddy.Color = Color3.fromRGB(91, 93, 105)
  208.                 PartBuddy.Material = Enum.Material.Ice
  209.                 PartBuddy.Size = Vector3.new(6, 6, 6)
  210.                 PartBuddy.CFrame = CFrame.new(-130.77375793457, 1, -131.76510620117)
  211.                 PartBuddy.Shape = Enum.PartType.Ball
  212.  
  213.                 local BillboardGui = Instance.new("BillboardGui")
  214.                 BillboardGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  215.                 BillboardGui.LightInfluence = 1
  216.                 BillboardGui.Size = UDim2.new(0, 200, 0, 50)
  217.                 BillboardGui.ClipsDescendants = true
  218.                 BillboardGui.MaxDistance = 25
  219.                 BillboardGui.Active = true
  220.                 BillboardGui.StudsOffset = Vector3.new(0, 2, 0)
  221.                 BillboardGui.Parent = PartBuddy
  222.  
  223.                 local TextLabel = Instance.new("TextLabel")
  224.                 TextLabel.Size = UDim2.new(0, 200, 0, 50)
  225.                 TextLabel.BackgroundTransparency = 1
  226.                 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  227.                 TextLabel.FontSize = Enum.FontSize.Size14
  228.                 TextLabel.TextStrokeTransparency = 0
  229.                 TextLabel.TextSize = 14
  230.                 TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  231.                 TextLabel.Text = "OBESE FRIEND ROCK"
  232.                 TextLabel.TextWrap = true
  233.                 TextLabel.Font = Enum.Font.SourceSans
  234.                 TextLabel.TextWrapped = true
  235.                 TextLabel.TextScaled = true
  236.                 TextLabel.Parent = BillboardGui
  237.  
  238.                 local Music = Instance.new("Sound")
  239.                 Music.Name = "Music"
  240.                 Music.Playing = true
  241.                 Music.Looped = true
  242.                 Music.SoundId = "rbxassetid://313451142"
  243.                 Music.Parent = PartBuddy
  244.                 Music.Volume = 4.5
  245.  
  246.                 local RopeConstraint = Instance.new("RopeConstraint")
  247.                 RopeConstraint.Length = 7.5
  248.                 RopeConstraint.Parent = PartBuddy
  249.  
  250.                 local Attachment = Instance.new("Attachment")
  251.                 Attachment.WorldPosition = Vector3.new(-130.77375793457, 1, -131.76510620117)
  252.                 Attachment.WorldCFrame = CFrame.new(-130.77375793457, 1, -131.76510620117)
  253.                 Attachment.Parent = PartBuddy
  254.  
  255.                 Attachment.WorldPosition = PartBuddy.Position
  256.  
  257.                 local a=Instance.new("Sound", PartBuddy)
  258.                 a.Name="Baby Crying Upset 6 Months Old 2 (SFX)"
  259.                 a.Volume=8
  260.                 a.SoundId="rbxassetid://9113234666"
  261.  
  262.                 local b=Instance.new("Sound", PartBuddy)
  263.                 b.Name="SpongeBob sad affect for zo "
  264.                 b.Volume=10
  265.                 b.SoundId="rbxassetid://8904888220"
  266.  
  267.  
  268.  
  269.                 if plr.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
  270.                     RopeConstraint.Attachment0 = plr.Character.HumanoidRootPart.RootRigAttachment
  271.                     RopeConstraint.Attachment1 = Attachment
  272.                 elseif plr.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
  273.                     RopeConstraint.Attachment0 = plr.Character.HumanoidRootPart.RootAttachment
  274.                     RopeConstraint.Attachment1 = Attachment
  275.                 end
  276.  
  277.                 PartBuddy.Position = plr.Character.HumanoidRootPart.Position
  278.  
  279.                 PartBuddy.Parent = workspace
  280.  
  281.                 local THISCHARACTER = plr.Character
  282.                 THISCHARACTER:FindFirstChild("Humanoid").Died:Connect(function()
  283.                     TextLabel.Text = "disowned rock"
  284.                     PartBuddy.Shape = Enum.PartType.Cylinder
  285.                     local props = {}
  286.                     props.Size = Vector3.new(2.5, 3.45, 2.5)
  287.                     game:GetService("TweenService"):Create(PartBuddy, TweenInfo.new(1, Enum.EasingStyle.Bounce, Enum.EasingDirection.In), props):Play()
  288.                     a:Play()
  289.                     b:Play()
  290.                 end)
  291. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement