SimTek Game Development
SimTek Game Development's Channel
 
 
Create Trail Effects | Roblox Studio | 2022
3,600
Create Custom Idle Animation in Roblox
2,933
How to Make a Boat You can Operate
2,733
Zombie Bite Lock: Create Latching Zombies!
2,733
Roblox Programming - Create Waves of Zombies
2,666
6-7 Animation
2,600
How to Punch with Knockback | Roblox Studio
2,466
How to Add Badges to Your Roblox Game
2,466
How to Make a Grenade!
2,400
How to Kick a Ball | Roblox Studio
2,400
Knife Combat with Custom Carry
2,333
6. Keyboard Events: Tab-to-Sprint
2,266
NPC AI: Advanced PathFinding - Run, Climb, Swim
2,200
How to Make Dialog Boxes and Talk to NPCs in Roblox
2,133
How To Save Progress In Your Roblox Game
2,133
How to Add Knockback to Walls for Players
2,066
Add a Hat to Players in Roblox!
2,066
 
SimTek Game Development
Your channel viewers will see links here, including "subscribe" and "add as friend".
Profile
 
Name
SimTek Game Development
Description
Welcome to SimTek Game Development! I create tutorials, guides, and projects that help you master Roblox Studio, Lua scripting, and game design. Whether you’re a beginner just starting out or an experienced creator looking to add advanced AI systems, you’ll find step-by-step lessons, coding walkthroughs, and creative inspiration here.

On this channel, you’ll learn how to:
Build interactive Roblox games from scratch
Script with Lua
Design AI NPCs and smart game mechanics
Explore creative world-building and simulation projects

With over 100,000 subscribers and hundreds of videos, SimTek Game Development is one of the leading learning resources for Roblox developers on YouTube.

Subscribers
249K
Subscriptions
Recent Activity  
SimTek Game Development https://youtu.be/169S0rLOMc4 How To Add Accessories with Code local players = game:GetService("Players") local ss = game:GetService("ServerStorage") local glassesFld = ss:WaitForChild("Glasses") local glassesTbl = glassesFld:GetChildren() local rnd = Random.new() local function changeFrontFaceAttachment(char) print("char = ", char.Name) local hum = char:WaitForChild("Humanoid") local head = char:WaitForChild("Head") local charParts = char:GetChildren() for i, v in pairs(charParts) do if v:IsA("Accessory") then local handle = v:FindFirstChild("Handle") if handle then local ffa = handle:FindFirstChild( "FaceFrontAttachment") if ffa then v:Destroy() end end end end local tblIdx = rnd:NextInteger(1, #glassesTbl) local myGlasses = glassesTbl[tblIdx] local glasses = myGlasses:Clone() hum:AddAccessory(glasses) end local function initPlayer(player) print("initPlayer is called!") local char = player.CharacterAppearanceLoaded:Connect( changeFrontFaceAttachment) end players.PlayerAdded:Connect(initPlayer) (3 months ago)
 
 
SimTek Game Development 7. Create A Tool - The Lemon of Invisibility! https://youtu.be/K_uWHRACOjY?si=OZdVo... ------------------ Local Script - Pickup local tool = script.Parent local pickupRe = tool:WaitForChild("PickupRe") local function onEquipped() pickupRe:FireServer(true) end local function onUnequipped() pickupRe:FireServer(false) end tool.Equipped:Connect(onEquipped) tool.Unequipped:Connect(onUnequipped) ------------------ Server Script - Empower local tool = script.Parent local pickupRe = tool:WaitForChild("PickupRe") local FADE_STEPS = 20 local FADE_STEP_TIME = 0.05 local function transistion(char, start, stop, dir) for currVis=start, stop, dir do task.wait(FADE_STEP_TIME) for i, v in pairs(char:GetDescendants()) do if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then v.Transparency = currVis/FADE_STEPS end end end end local function changeVisibility(player, isInvisible) local char = player.Character if char then if isInvisible then -- turning invisible transistion(char, 1, FADE_STEPS, 1) else transistion(char, FADE_STEPS, 0, -1) end end end pickupRe.OnServerEvent:Connect(changeVisibility) (4 months ago (edited))
 
 
SimTek Game Development How to Make an NPC Self Destruct When Close to Players https://www.youtube.com/watch?v=rtRjC... local Players = game:GetService("Players") local debris = game:GetService("Debris") local npc = script.Parent local hum = npc:WaitForChild("Humanoid") local hrp = npc:WaitForChild("HumanoidRootPart") local bColors = npc:WaitForChild("Body Colors") local DETECT_RANGE = 36 local CLOSE_RANGE = 12 local CHECK_DELAY = 0.1 local WANDER_RADIUS = 20 local CHASE_SPEED = 10 local IDLE_SPEED = 4 local SELF_DESTRUCT_TIME = 2.0 local FLASH_INTERVAL = 0.15 local EXPLOSION_RADIUS = 12 local SCALE_STEP = 0.03 local MAX_BONUS_SCALE = 0.25 local currentTgt = nil local currentState = "Idle" local baseScale = npc:GetScale() local params = RaycastParams.new() params.FilterType = Enum.RaycastFilterType.Exclude params.FilterDescendantsInstances = { npc } local FLASH_COLOR = Color3.fromRGB(135, 255, 135) local normalColors = { HeadColor3 = bColors.HeadColor3, TorsoColor3 = bColors.TorsoColor3, LeftArmColor3 = bColors.LeftArmColor3, RightArmColor3 = bColors.RightArmColor3, LeftLegColor3 = bColors.LeftLegColor3, RightLegColor3 = bColors.RightLegColor3, } local function setFlashColors() bColors.HeadColor3 = FLASH_COLOR bColors.TorsoColor3 = FLASH_COLOR bColors.LeftArmColor3 = FLASH_COLOR bColors.RightArmColor3 = FLASH_COLOR bColors.LeftLegColor3 = FLASH_COLOR bColors.RightLegColor3 = FLASH_COLOR end local function setNormalColors() bColors.HeadColor3 = normalColors.HeadColor3 bColors.TorsoColor3 = normalColors.TorsoColor3 bColors.LeftArmColor3 = normalColors.LeftArmColor3 bColors.RightArmColor3 = normalColors.RightArmColor3 bColors.LeftLegColor3 = normalColors.LeftLegColor3 bColors.RightLegColor3 = normalColors.RightLegColor3 end local function scaleNpcKeepPosition(newScale) if not hrp or not npc.Parent then return end local oldCFrame = hrp.CFrame npc:ScaleTo(newScale) hrp.CFrame = oldCFrame end local function isAlive() hrp = npc:FindFirstChild("HumanoidRootPart") hum = npc:FindFirstChild("Humanoid") return hrp and hum and hum.Health > 0 end local function getAliveCharParts(player) local char = player.Character if not char then return nil, nil end local tgtHrp = char:FindFirstChild("HumanoidRootPart") local tgtHum = char:FindFirstChild("Humanoid") if not tgtHrp or not tgtHum or tgtHum.Health <= 0 then return nil, nil end return char, tgtHrp end local function canSeePlayer(player) local char, tgtHrp = getAliveCharParts(player) if not char or not tgtHrp or not hrp then return false end local offset = tgtHrp.Position - hrp.Position if offset.Magnitude > DETECT_RANGE then return false end local result = workspace:Raycast(hrp.Position, offset, params) return result and result.Instance and result.Instance:IsDescendantOf(char) end local function findVisiblePlayer() for _, player in ipairs(Players:GetPlayers()) do if canSeePlayer(player) then return player end end return nil end local function wanderToRandomPoint() if not hrp then return false end local dx = math.random(-WANDER_RADIUS, WANDER_RADIUS) local dz = math.random(-WANDER_RADIUS, WANDER_RADIUS) local dest = hrp.Position + Vector3.new(dx, 0, dz) hum:MoveTo(dest) return true end local function doIdleBehavior() if not hrp then return end local roll = math.random(1, 3) if roll == 1 or roll == 2 then hum:MoveTo(hrp.Position) currentState = "Idle" else if wanderToRandomPoint() then currentState = "Wander" end end end hum.MoveToFinished:Connect(function() if currentState == "Wander" and not currentTgt then currentState = "Idle" end end) local function explode() if not hrp or not npc.Parent then return end local exp = Instance.new("Explosion") exp.Position = hrp.Position exp.BlastRadius = EXPLOSION_RADIUS exp.BlastPressure = 10000 --exp.DestroyJointRadiusPercent = 0 exp.Parent = workspace debris:AddItem(exp, 2) npc:Destroy() end local function runSelfDestruct() if currentState == "SelfDestruct" then return end currentState = "SelfDestruct" hum.WalkSpeed = 0 hum:MoveTo(hrp.Position) local elapsed = 0 local flashOn = false local scaleCount = 0 while npc.Parent and isAlive() and elapsed < SELF_DESTRUCT_TIME do flashOn = not flashOn if flashOn then setFlashColors() else setNormalColors() end scaleCount += 1 local bonus = math.min(scaleCount * SCALE_STEP, MAX_BONUS_SCALE) scaleNpcKeepPosition(baseScale + bonus) task.wait(FLASH_INTERVAL) elapsed += FLASH_INTERVAL end explode() end local function chaseTarget(player) local _, tgtHrp = getAliveCharParts(player) if not tgtHrp then currentTgt = nil currentState = "Idle" setNormalColors() return end local dist = (tgtHrp.Position - hrp.Position).Magnitude if dist <= CLOSE_RANGE then runSelfDestruct() return end currentState = "Chase" hum.WalkSpeed = CHASE_SPEED hum:MoveTo(tgtHrp.Position) setNormalColors() end while isAlive() do if currentState == "SelfDestruct" then task.wait(CHECK_DELAY) continue end if currentTgt and canSeePlayer(currentTgt) then chaseTarget(currentTgt) else currentTgt = findVisiblePlayer() if currentTgt then chaseTarget(currentTgt) else hum.WalkSpeed = IDLE_SPEED setNormalColors() if currentState ~= "Wander" then doIdleBehavior() end end end task.wait(CHECK_DELAY) end (7 months ago)
 
 
SimTek Game Development How to make an NPC Chase Script https://youtu.be/fXmB-SWZu-o --------- We will improve this script in the next video local players = game:GetService("Players") local debris = game:GetService("Debris") local npc = script.Parent local hum = npc:WaitForChild("Humanoid") local hrp = npc:WaitForChild("HumanoidRootPart") local DETECT_RANGE = 36 local CLOSE_RANGE = 12 local CHECK_DELAY = 0.25 local WANDER_RADIUS = 20 local currentTgt = nil local currentState = nil local params = RaycastParams.new() params.FilterType = Enum.RaycastFilterType.Exclude params.FilterDescendantsInstances = { npc } local function isAlive() hrp = npc:FindFirstChild("HumanoidRootPart") hum = npc:FindFirstChild("Humanoid") if hrp and hum and hum.Health > 0 then return true end return false end local function getAliveCharParts(player) local char = player.Character if not char then return nil, nil end local tgtHrp = char:FindFirstChild("HumanoidRootPart") local tgtHum = char:FindFirstChild("Humanoid") if not tgtHrp or not tgtHum then return nil, nil end if tgtHum.Health <= 0 then return nil, nil end return char, tgtHrp end local function canSeePlayer(player) local char, tgtHrp = getAliveCharParts(player) if not char or not tgtHrp or not hrp then return false end local offset = tgtHrp.Position - hrp.Position if offset.Magnitude > DETECT_RANGE then return false end local result = workspace:Raycast(hrp.Position, offset, params) return result and result.Instance and result.Instance:IsDescendantOf(char) end local function findVisiblePlayer() for _, player in ipairs(players:GetPlayers()) do if canSeePlayer(player) then return player end end return nil end local function wanderToRandomPoint() if not hrp then return false end local dx = math.random(-WANDER_RADIUS, WANDER_RADIUS) local dz = math.random(-WANDER_RADIUS, WANDER_RADIUS) local dest = hrp.Position + Vector3.new(dx, 0, dz) hum:MoveTo(dest) return true end local function doIdleBehavior() if not hrp then return false end local roll = math.random(1, 3) if roll == 1 or roll == 2 then hum:MoveTo(hrp.Position) else if wanderToRandomPoint() then currentState = "Wander" end end end hum.MoveToFinished:Connect(function() if currentState == "Wander" and not currentTgt then currentState = "Idle" end end) local function chaseTarget(player) local char, tgtHrp = getAliveCharParts(player) if not tgtHrp then currentTgt = nil currentState = "Idle" return end currentState = "Chase" hum:MoveTo(tgtHrp.Position, tgtHrp) local dist = (tgtHrp.Position - hrp.Position).Magnitude if dist <= CLOSE_RANGE then local exp = Instance.new("Explosion", workspace) exp.BlastRadius = CLOSE_RANGE * 1.15 exp.BlastPressure = 50000 exp.Position = hrp.Position npc:Destroy() debris:AddItem(exp, 2) end end while isAlive() do if currentTgt and canSeePlayer(currentTgt) then chaseTarget(currentTgt) else currentTgt = findVisiblePlayer() if currentTgt then hum.WalkSpeed = 10 chaseTarget(currentTgt) else hum.WalkSpeed = 4 if currentState ~= "Wander" then doIdleBehavior() end end end task.wait(CHECK_DELAY) end (8 months ago)
 
 
Friends
Channel Comments
katzeghg1548 (3 years ago)
Every developer needs that!
Shushupbuttercup (3 years ago)
This is a cool tutorial that actually works! Tysmm <3
aeciiu (2 years ago)
I know this tutorial was posted so long ago but WOW! You quite literally saved my game, thank you!
sqmetimesdev6150 (4 years ago)
Works perfectly, thanks!
trinitrotoluene3D (3 years ago)
The main problem I had with making a crawling animation was that the player was only crouching a little bit and not 100% doing the crawling
randomismymiddlename2429 (3 years ago)
Dude This is awesome! I'm gonna subscribe!:trophy-yellow-smiling:
m1lky_532 (2 years ago)
you have just saved me DAYS trying to figure out how to make a walk cycle, TYSM
Zenpheny (3 years ago)
your amazing like actually every other tutorial is long confusing and doesent sound like an actual person is teaching, this feels like its a hands on activity with another person helping me work through it. Thank you
345ggg (3 years ago)
Super Chill and Explained very well! Im a beginner coder so this helped me out a lot!
rollingthe1st (3 years ago)
Thank you this was very clear for me to follow and easy its working thank you very much
killitwithfireheatwave (3 years ago)
Thank you for this tutorial, it is very helpful and clear on what you're doing!
shukusama7549 (3 years ago)
Wow, thanks! Question, how do you also add another animation (idle for example)?
mimihoppps8044 (4 years ago)
Hi! can you make a tut for how to do an custom animation.. but for roles? like when I change role it also have different animation
earthtoandrew1405 (4 years ago)
I love it! I was searching forever, and finally found something worth while.