RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create lava falling from the sky on players heads"
-- server script while true do local part = Instance.new("Part") part.Parent = game.Workspace local randomX = math.random(-100, 100) local randomZ = math.random(-100, 100) part.Position = Vector3.new(randomX, 50, randomZ) part.Color = Color3.fromRGB(255, 0, 0) part.Material = "Neon" part.Transparency = 0.5 task.wait() end -- server script for lava damage game.Players.PlayerAdded:Connect(function(Player) Player.CharacterAdded:Connect(function(Character) Character.Touched:Connect(function(Part) if Part.Parent:FindFirstChild("Lava") then Character.Humanoid:TakeDamage(20) end end) end) end)