#roblox #robloxstudio
========================================
Shark Kill Script
— Script inside the shark model
local shark = script.Parent
— Function that runs when the shark touches something
local function onTouch(hit)
local character = hit.Parent
local humanoid = character:FindFirstChild(“Humanoid”)
if humanoid then
— Option 1: Kill instantly
humanoid.Health = 0
— Option 2: Damage slowly (uncomment to use)
— humanoid:TakeDamage(20)
end
end
— Connect all shark parts to the touch event
for _, part in ipairs(shark:GetChildren()) do
if part:IsA(“BasePart”) then
part.Touched:Connect(onTouch)
end
end
======================lava blocks================================
— Script for a lava block that kills players
local lava = script.Parent
lava.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
local humanoid = hit.Parent:FindFirstChild(“Humanoid”)
if humanoid then
humanoid.Health = 0
end
end
end)
==============================================================
🟢FOLLOW ME ON MY SOCIAL MEDIA
👉 FOLLOW ME ON TWITCH: https://www.twitch.tv/soflysojoe1
👉 FOLLOW ME ON TWITTER: https://twitter.com/soflysojoe
🟢CHECK OUT MY OTHER YOUTUBE CHANNELS
👉Youtube.com/@SOFLYSOJOE1GAMING
👉Youtube.com/Gamerkingz5000
👉youtube.com/@SOFLYSOJOEGTA
Follow me on my other social media —
👉twitch.com/soflysojoe1
👉https://twitter.com/soflysojoe
👉https://www.tiktok.com/@soflysojoe1
🟢GET YOUR SOFLYSOJOE1 MERCH NOW!
👉https://www.zazzle.com/store/soflysojoe1/products
🟢Join this channel to get access to perks and become a member:
https://www.youtube.com/channel/UCTEKtOFvcCDCj46F7IZ-_cg/join
cash app: $SOFLYSOJOE1
Fair Use Disclaimer:
“Copyright Disclaimer Under Section 107 of the Copyright Act 1976, allowance is made for “fair use” for purposes such as criticism, comment, news reporting, teaching, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance in favor of fair use.”