Advertisement
RobloxScripTTPoster

(Doors) Guiding Candle Script

Dec 17th, 2022
949
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. -- Shop Items
  2. local Functions = loadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Functions.lua"))()
  3. local CustomShop = loadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Doors/Custom%20Shop%20Items/Source.lua"))()
  4. local Candle = game:GetObjects("rbxassetid://11630702537")[1]
  5. Candle.Parent = game.Players.LocalPlayer.Backpack
  6. local plr = game.Players.LocalPlayer
  7. local Char = plr.Character or plr.CharacterAdded:Wait()
  8. local Hum = Char:FindFirstChild("Humanoid")
  9. local RightArm = Char:FindFirstChild("RightUpperArm")
  10. local LeftArm = Char:FindFirstChild("LeftUpperArm")
  11. local RightC1 = RightArm.RightShoulder.C1
  12. local LeftC1 = LeftArm.LeftShoulder.C1
  13. local AnimIdle = Instance.new("Animation")
  14. AnimIdle.AnimationId = "rbxassetid://9982615727"
  15. AnimIdle.Name = "IDleloplolo"
  16. local cam = workspace.CurrentCamera
  17. Candle.Handle.Top.Flame.GuidingLighteffect.EffectLight.LockedToPart = true
  18. Candle.Handle.Material = Enum.Material.Salt
  19. local track = Hum.Animator:LoadAnimation(AnimIdle)
  20. track.Looped = true
  21. local Equipped = false
  22. for i, v in pairs(Candle:GetDescendants()) do
  23. if v:IsA("BasePart") then
  24. v.CanCollide = false
  25. end
  26. end
  27. Candle.Equipped:Connect(function()
  28. for _, v in next, Hum:GetPlayingAnimationTracks() do
  29. v:Stop()
  30. end
  31. Equipped = true
  32. -- RightArm.Name = "R_Arm"
  33. track:Play()
  34. -- RightArm.RightShoulder.C1 = RightC1 * CFrame.Angles(math.rad(-90), math.rad(-15), 0)
  35. end)
  36. Candle.Unequipped:Connect(function()
  37. RightArm.Name = "RightUpperArm"
  38. track:Stop()
  39. Equipped = false
  40. -- RightArm.RightShoulder.C1 = RightC1
  41. end)
  42. cam.ChildAdded:Connect(function(screech)
  43. if screech.Name == "Screech" and math.random(1, 400) ~= 1 then
  44. if not Equipped then
  45. return
  46. end
  47. if Equipped then
  48. game:GetService("Debris"):AddItem(screech, 0.05)
  49. end
  50. end
  51. end)
  52. Candle.TextureId = "rbxassetid://11622366799"
  53. -- Create custom shop item
  54. if plr.PlayerGui.MainUI.ItemShop.Visible then
  55. CustomShop.CreateItem(Candle, {
  56. Title = "Guiding Candle",
  57. Desc = "קг๏ςєє๔ คՇ ץ๏ยг ๏ฬภгเรк.",
  58. Image = "rbxassetid://11622366799",
  59. Price = 75,
  60. Stack = 1,
  61. })
  62. else
  63. Candle.Parent = game.Players.LocalPlayer.Backpack
  64. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement