-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathZylenth Entity.lua
87 lines (78 loc) · 2.67 KB
/
Zylenth Entity.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
local Spawner = loadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Doors%20Entity%20Spawner/Source.lua"))()
-- Create entity
local entityTable = Spawner.createEntity({
CustomName = "Zylenth", -- Custom name of your entity
Model = "https://github.com/BemboLikePizza/MyCustomEntities/blob/main/Zylenth.rbxm?raw=true", -- Can be GitHub file or rbxassetid
Speed = 450, -- Percentage, 100 = default Rush speed
DelayTime = 4, -- Time before starting cycles (seconds)
HeightOffset = 0,
CanKill = false,
KillRange = 100,
BackwardsMovement = false,
BreakLights = true,
FlickerLights = {
true, -- Enabled/Disabled
2, -- Time (seconds)
},
Cycles = {
Min = 2,
Max = 10,
WaitTime = 1,
},
CamShake = {
true, -- Enabled/Disabled
{6, 50, 0.1, 1}, -- Shake values (don't change if you don't know)
100, -- Shake start distance (from Entity to you)
},
Jumpscare = {
false, -- Enabled/Disabled
{
Image1 = "rbxassetid://10483855823", -- Image1 url
Image2 = "rbxassetid://10483999903", -- Image2 url
Shake = true,
Sound1 = {
10483790459, -- SoundId
{ Volume = 0.5 }, -- Sound properties
},
Sound2 = {
10483837590, -- SoundId
{ Volume = 0.5 }, -- Sound properties
},
Flashing = {
true, -- Enabled/Disabled
Color3.fromRGB(255, 255, 255), -- Color
},
Tease = {
true, -- Enabled/Disabled
Min = 1,
Max = 3,
},
},
},
CustomDialog = {"You died to...", "...", "What Did Just Happened", "What Are This Entity."}, -- Custom death message
})
-----[[ Debug -=- Advanced ]]-----
entityTable.Debug.OnEntitySpawned = function()
print("Entity has spawned:", entityTable)
end
entityTable.Debug.OnEntityDespawned = function()
print("Entity has despawned:", entityTable)
end
entityTable.Debug.OnEntityStartMoving = function()
print("Entity has started moving:", entityTable)
end
entityTable.Debug.OnEntityFinishedRebound = function()
print("Entity has finished rebound:", entityTable)
end
entityTable.Debug.OnEntityEnteredRoom = function(room)
print("Entity:", entityTable, "has entered room:", room)
end
entityTable.Debug.OnLookAtEntity = function()
print("Player has looked at entity:", entityTable)
end
entityTable.Debug.OnDeath = function()
warn("Player has died.")
end
------------------------------------
-- Run the created entity
Spawner.runEntity(entityTable)