This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local char = script.Parent | |
local head = char:WaitForChild("Head") | |
local torso = char:WaitForChild("Torso") | |
local hum = char:WaitForChild("Humanoid") | |
local destReachRange = 3 | |
local losRange = 128 | |
local hearRange = 48 | |
local ai_max_range = math.huge | |
local attackRange = 2 --65 | |
local runSpeed = 16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local char = script.Parent | |
local head = char:WaitForChild("Head") | |
local torso = char:WaitForChild("Torso") | |
local hum = char:WaitForChild("Humanoid") | |
local destReachRange = 3 | |
local losRange = 128 | |
local hearRange = 48 | |
local ai_max_range = math.huge | |
local attackRange = 2 --65 | |
local runSpeed = 16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local char = script.Parent | |
local head = char:WaitForChild("Head") | |
local torso = char:WaitForChild("Torso") | |
local hum = char:WaitForChild("Humanoid") | |
local destReachRange = 2 | |
local losRange = 128 | |
local hearRange = 48 | |
local ai_max_range = math.huge | |
local attackRange = 2 --65 | |
local runSpeed = 16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Some vars | |
local char = script.Parent | |
local head = char:WaitForChild("Head") | |
local torso = char:WaitForChild("Torso") | |
local hum = char:WaitForChild("Humanoid") | |
local map = workspace.Map | |
local sndEvent = workspace.Game.PlaySoundClient | |
local timeouts = 0 | |
--Some constants |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getRayEntranceAndExit(pos, dir, distance) | |
local ignore = deepcopy(_G.ignorelist) | |
local Ray1 = Ray.new(pos, dir.unit*distance) | |
local obj, enter, enterface = workspace:FindPartOnRayWithIgnoreList(Ray1, _G.ignorelist) | |
if obj ~= nil then | |
table.insert(ignore, obj) | |
end | |
local Ray2 = Ray.new(enter, dir.unit*distance) | |
local _, hpos2 = workspace:FindPartOnRayWithIgnoreList(Ray2, ignore) | |
local Ray3 = Ray.new(hpos2, CFrame.new(hpos2, enter).lookVector.unit*distance) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
debug = true | |
player = { | |
x = 64; | |
y = 500; | |
Speed = 250; | |
Texture = nil; | |
} | |
isAlive = true | |
score = 0 | |
highscore = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
debug = true | |
player = { | |
x = 64; | |
y = 500; | |
Speed = 250; | |
Texture = nil; | |
} | |
isAlive = true | |
score = 0 | |
highscore = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
debug = true | |
player = { | |
x = 64; | |
y = 500; | |
Speed = 250; | |
Texture = nil; | |
} | |
isAlive = true | |
score = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local chars = "abcdefghijklmnopqrstuvwxyz0123456789" | |
function flipCoin() | |
local bools = {true, false} | |
return bools[math.random(1, #bools)] | |
end | |
function randChar() | |
local n = math.random(1, 36) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local chars = "abcdefghijklmnopqrstuvwxyz0123456789" | |
function flipCoin() | |
local bools = {true, false} | |
return bools[math.random(1, #bools)] | |
end | |
function randChar() | |
local n = math.random(1, 36) |
OlderNewer