Gnomecode Addons 2: Advanced Tower Attacking

  Рет қаралды 3,373

Just Why?

Just Why?

Күн бұрын

Funni little addon

Пікірлер: 38
@Why-Just
@Why-Just Жыл бұрын
Any issues or suggestions you have please comment them below
@Stickman_editsshorts
@Stickman_editsshorts 10 күн бұрын
it doesnt work
@Stickman_editsshorts
@Stickman_editsshorts 10 күн бұрын
it keeps saying Attempted to call require with invalid argument(s).
@Why-Just
@Why-Just 10 күн бұрын
@Stickman_editsshorts did you name your modules correctly?
@Stickman_editsshorts
@Stickman_editsshorts 9 күн бұрын
@@Why-Just nvm i fixed it
@ab82914
@ab82914 5 ай бұрын
Thanks it works
@Why-Just
@Why-Just 5 ай бұрын
@@ab82914 you're welcome!
@scoopyjscoopers1418
@scoopyjscoopers1418 2 күн бұрын
do i have to change the tower name each module or just keep it that way
@Why-Just
@Why-Just Күн бұрын
@@scoopyjscoopers1418 you name the modules after the tower name
@NewAltAkuan
@NewAltAkuan 11 ай бұрын
This gonna be useful for me because I use 2 types of projectiles which are projectile or/and aim-scan, if I'm done, thank you! edit: I think it's done, hopefully nothing wrong edit2: I wanna say ありがとうございます!
@Why-Just
@Why-Just 11 ай бұрын
You're welcome
@mathoe123
@mathoe123 11 ай бұрын
no music?
@wabadylan2132
@wabadylan2132 4 ай бұрын
W tutorial
@JustMaD0
@JustMaD0 Жыл бұрын
What does changed, I didn't got
@Why-Just
@Why-Just Жыл бұрын
If you changed nothing then there would be no change, this tutorial is mainly to open the door for new tower types like farms (tutorial on that soon)
@JustMaD0
@JustMaD0 Жыл бұрын
​@@Why-Just Useless cuz that's no needed for other type of towers.
@Why-Just
@Why-Just Жыл бұрын
@@JustMaD0 while that is correct to a extent, this tower system allows for these tower types to be more efficient, for example if you wanted a spawner tower you'd need to put a script in it, however with this new version you can have the module spawn them instead which can improve performance a good bit
@RobloxRobotic
@RobloxRobotic 9 ай бұрын
yo dude when i make my towers small is not being able to animate can u make a tutorial on how to fix it? Pls
@Why-Just
@Why-Just 9 ай бұрын
Odd I never had that issue, can I have specific details on what's happening?
@RobloxRobotic
@RobloxRobotic 9 ай бұрын
Look at the script its all fine but it dosent work! local Debris = game:GetService("Debris") local ReplicatedStorage = game:GetService("ReplicatedStorage") local TweenService = game:GetService("TweenService") local events = ReplicatedStorage:WaitForChild("Events") local animateTowerEvent = events:WaitForChild("AnimateTower") local function fireProjectile(tower, target) local projectile = Instance.new("Part") projectile.Size = Vector3.new(1,1,1) projectile.CFrame = tower.Head.CFrame projectile.Anchored = true projectile.CanCollide = false projectile.Transparency = 1 projectile.Parent = workspace.Camera local fire = Instance.new("Fire") fire.Size = 2 fire.Heat = 0.1 fire.Color = tower.Config.Trail.Value fire.Parent = projectile local projectileTween = TweenService:Create(projectile, TweenInfo.new(0.5), {Position = target.HumanoidRootPart.Position}) projectileTween:Play() Debris:AddItem(projectile, 0.5) end local function setAnimation(object, animName) local humanoid = object:WaitForChild("Humanoid") local animationsFolder = object:WaitForChild("Animations") if humanoid and animationsFolder then local animationObject = animationsFolder:WaitForChild(animName) if animationObject then local animator = humanoid:FindFirstChild("Animator") or Instance.new("Animator", humanoid) local playingTracks = animator:GetPlayingAnimationTracks() for i, track in pairs(playingTracks) do if track.Name == animName then return track end end local animationTrack = animator:LoadAnimation(animationObject) return animationTrack end end end local function playAnimation(object, animName) local animationTrack = setAnimation(object, animName) if animationTrack then animationTrack:Play() else warn("Animation track does not exist") return end end workspace.Mobs.ChildAdded:Connect(function(object) playAnimation(object, "Walk") end) workspace.Towers.ChildAdded:Connect(function(object) playAnimation(object, "Idle") end) animateTowerEvent.OnClientEvent:Connect(function(tower, animName, target) playAnimation(tower, animName) if target then if tower.Config:FindFirstChild("Trail") then fireProjectile(tower, target) end tower.HumanoidRootPart.Attack:Play() end end) There is nothing wrong i even watched the animation tutorial but STILL did not work :(
@Why-Just
@Why-Just 9 ай бұрын
@@RobloxRobotic is the issue with the attack animation or animations in general?
@RobloxRobotic
@RobloxRobotic 9 ай бұрын
all animations in general
@Why-Just
@Why-Just 9 ай бұрын
@@RobloxRobotic I am so sorry but I have no idea what could possibly be wrong, maybe try adding some prints to see where the code isn't working?
@Those2Monkeys
@Those2Monkeys 8 ай бұрын
how do you get your projectiles like that?
@Why-Just
@Why-Just 8 ай бұрын
I have a folder on replicated storage holding projectiles then I use them whenever a tower requires em
@CorruptedDevv
@CorruptedDevv Жыл бұрын
E
@Why-Just
@Why-Just Жыл бұрын
A
@CorruptedDevv
@CorruptedDevv Жыл бұрын
@@Why-Just B
@Why-Just
@Why-Just Жыл бұрын
C
@CorruptedDevv
@CorruptedDevv Жыл бұрын
@@Why-Just D
@Why-Just
@Why-Just Жыл бұрын
@@CorruptedDevv E
Making a Game About Weak Points
21:27
Emis
Рет қаралды 1,1 МЛН
Toilet Tower Defense STOLE my game TDX.. | ROBLOX
8:08
JOHN ROBLOX
Рет қаралды 1,1 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Gnomecode Tower Defense Addons 4: Tower HP
3:05
Just Why?
Рет қаралды 1,4 М.
Gratz Is Hiding A PREDATORY Past...
15:32
Naidvar
Рет қаралды 130 М.
GnomeCode TD Addons: How to make a Drone tower!
3:03
DOgMa2
Рет қаралды 1,2 М.
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 7 МЛН
Я создал свой режим в Роблокс!
6:19
Tim Stellar
Рет қаралды 104 М.
how to make a frame open when a button is pressed
7:10
Tanja Wilde Holmgeirsson
Рет қаралды 12
The DOWNFALL Of All Star Tower Defense..
5:09
JaxProductions
Рет қаралды 24 М.
Gnomecode Tower Defense Addons 6: Skins and Skin Crates
14:45
Just Why?
Рет қаралды 3,9 М.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН