local db = false
part.Touched:Connect(function()
if db == false then
db = true
local Remote:RemoteEvent = game.ReplicatedStorage.CutsceneRemote
local CutsceneFolder:Folder = game.ReplicatedStorage.TheBoulder1
Remote:FireClient(Player, Player.Character.HumanoidRootPart, CutsceneFolder)
task.wait(--[[time you want the cooldown of the part to be, removable]])
db = false
end
end)
#How to make this MA 2 script triggered by touching a part in workspace instead of CharacterAdded?
64 messages · Page 1 of 1 (latest)
Hmm.
I pasted this script, the Player at Remote:FireClient is unknown
@short shuttle
Ignore the red line, that's Grammarly
Touch event?
because you didn't make a variable for the player, yet you're calling it
wait a sec
yea
currently trying to add a new variable but i cant do shit
This script triggers another local script
basically this is a trigger script
and Its supposed to be touch trigger rather than a player joining
Is that a local Script or a serverScript
Server Script that triggers a local script
ServerScriptService being the parent of this specific script
my first time ever seeing a reversed role
Rkyel did you delete the script accidentally 💀
Usually it's local script triggering by server
local db = false
part.Touched:Connect(function(hit)
if game.Players:FindFirstChild(hit.Parent.Name) and hit.Parent:FindFirstChild("Humanoid") and hit.Parent:FindFirstChild("Humanoid").Health ~= 0 and db == false then
local Player = game.Players:GetPlayerFromCharacter(hit.Parent)
db = true
local Remote:RemoteEvent = game.ReplicatedStorage.CutsceneRemote
local CutsceneFolder:Folder = game.ReplicatedStorage.TheBoulder1
Remote:FireClient(Player, Player.Character.HumanoidRootPart, CutsceneFolder)
task.wait(--[[time you want the cooldown of the part to be, removable]])
db = false
end
end)
bruh
alright lets see
thank ya'll for bothering btw
this means a lot 💀
Humanoid health 0?
is that supposed to trigger it or
Im gonna test rn
it checks if Humanoid's health isnt equal to 0
if you want the cutscene to only play once, remove the db = false
I can't believe you when you say you've watched tens of tutorials, you should go watch begginer scripting tutorials
OH GOD
I am aware, trust me 💀 my ass is shit when it comes to scripting intermediate things
dude
it works
i cannot
show you
Yay
You may close this post now
Yea
wait
Didn't really do anything, @short shuttle did well!
eveybody starts somewhere, no one starts amazing at scripting, I really sugest you watch the simple begginer tutorials
Main issue of mine is I forcely watch intermediate scripting tutorials thinking it's logical
but yea thank you for the advice
and thank you for the script Rkyiel
alright take care, happy new years
You'll eventually get the hang of it
Once you know what each detail does it's going to be easier dw
I just unfollow the post lol