
1.3k Views
269 Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
8k
-- 🌟 تأثير النجوم على جسم اللاعب بالكامل 🌟
local Players = game:GetService("Players")
-- عند انضمام اللاعب
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
-- تحديد أجزاء الجسم التي سيُضاف لها التأثير
local bodyParts = {"Head", "Torso", "HumanoidRootPart", "LeftLeg", "RightLeg", "LeftArm", "RightArm"}
for _, partName in pairs(bodyParts) do
local part = character:FindFirstChild(partName)
if part then
-- إضافة ParticleEmitter لكل جزء
local starEmitter = Instance.new("ParticleEmitter")
starEmitter.Name = "StarEffect"
starEmitter.Parent = part
starEmitter.Texture = "rbxassetid://241594819" -- معرف صورة النجوم
starEmitter.Rate = 30 -- كثافة النجوم
starEmitter.Lifetime = NumberRange.new(1, 3) -- مدة بقاء النجوم
starEmitter.Speed = NumberRange.new(0.5, 1) -- سرعة الحركة
starEmitter.VelocitySpread = 360 -- توزيع النجوم في جميع الاتجاهات
starEmitter.Rotation = NumberRange.new(0, 360) -- دوران النجوم
starEmitter.RotSpeed = NumberRange.new(5, 10) -- سرعة الدوران
starEmitter.Size = NumberSequence.new{
NumberSequenceKeypoint.new(0, 0.5), -- حجم النجوم في البداية
NumberSequenceKeypoint.new(1, 0.1) -- حجم النجوم عند التلاشي
}
starEmitter.Transparency = NumberSequence.new{
NumberSequenceKeypoint.new(0, 0.2), -- شفافية في البداية
NumberSequenceKeypoint.new(1, 1) -- شفافية عند الاختفاء
}
starEmitter.Color = ColorSequence.new(Color3.fromRGB(0, 102, 255)) -- لون أزرق
starEmitter.LightInfluence = 0.5 -- التأثير بالإضاءة
starEmitter.EmissionDirection = Enum.NormalId.Top -- اتجاه الانبعاث لأعلى
print("✅ تم إضافة تأثير النجوم إلى: " .. partName)
end
end
end)
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!







