How to make A Pet Simulator X Game on Roblox - Part 7
🕑 Added 2022-07-20 07:17:41 +0000 UTCComments
Kamoo
player.Stats.Bones.Value
Kamoo
my drops and my currency are bones and gems like
Kamoo
local TweenService = game:GetService("TweenService") local Workspace = game:GetService("Workspace") local RunService = game:GetService("RunService") local Drops = Workspace:WaitForChild("Drops") local module = {} RunService.RenderStepped:Connect(function() for _, Drop in pairs(Drops:GetChildren()) do local Attachment = Drop.PrimaryPart:FindFirstChild("Attachment") if Attachment then local Position = Vector3.new(Attachment.Position.X, 2 + (math.sin(time() * 10)/2), 4 + (math.sin(time() * 10))) local Orientation = Vector3.new((math.sin(time() * 10) * 10),Attachment.Position.Y , (math.sin(time() * 10) * 10)) Attachment.Position = Position Attachment.Orientation = Orientation end end end) return module
polarisprog
Can you send me your AnimateAttachment module? I'll fix it for you
Kamoo
I need help right now so the AnimateAttachment module script works but it gives me an error that i cant fix, this error brings my game to a big lag because it repeats every milisecond. Can someone help me or has an idea whats going on? Players.Leonardo_Inklingo.PlayerScripts.Client.ClientModules.AnimateAttachments:11: attempt to index nil with 'FindFirstChild'
Kamoo
so when dos the next part come out?