cara membuat jebakan player/jaring spider dan membuat medkit di roblox studio
Вставка
- Опубліковано 17 січ 2025
- ini guys script jebakan nya:
local cooldown = true
function slow_on(Char)
if Char and Char.Parent:FindFirstChild("Humanoid") and cooldown then
cooldown = false
Char.Parent.Humanoid.WalkSpeed = 1
Char.Parent.Humanoid.JumpPower = 0
wait(2)
end
end
function slow_off(Char)
if Char and Char.Parent:FindFirstChild("Humanoid") and not cooldown then
cooldown = true
Char.Parent.Humanoid.WalkSpeed = 20
Char.Parent.Humanoid.JumpPower = 50
end
end
script.Parent.Touched:Connect(slow_on)
script.Parent.TouchEnded:Connect(slow_off)
dan ini script medkitnya:
model = script.Parent
local function MedKit(Char)
if Char and Char.Parent:FindFirstChild("Humanoid") then
local hp = Char.Parent.Humanoid.Health
Char.Parent.Humanoid.Health = hp + 25
local effect = Instance.new("ParticleEmitter")
effect.Color = ColorSequence.new(Color3.new(1,0,0),Color3.new(1,0,0))
effect.Rate = 30
effect.Parent = Char.Parent.HumanoidRootPart
local force = Instance.new("ForceField")
force.Parent = Char.Parent
game:GetService("Debris"):AddItem(effect, 3)
game:GetService("Debris"):AddItem(force, 3)
model:Destroy()
end
end
for i, v in pairs( model:GetDescendants() ) do
if ( v:IsA("Part") ) then
v.Touched:Connect(MedKit)
end
end