#I have a script and i dont know how to change it
67 messages · Page 1 of 1 (latest)
ok sorry
I have a script and i dont know how to change it
sp=script.Parent
for i,v in ipairs(sp:GetChildren()) do
if v.Name=="Launcher" then
v.Touched:connect(function(hit)
if hit.Parent~=nil then
local h = hit.Parent:FindFirstChild("Humanoid")
if h~=nil then
hit.Parent.Torso.Velocity=v.CFrame.lookVector*100--the distance you want the player to be launched, increase to go further--
end
end
end)
end
end
do u know anything about scripting
ok then stop coming here nobody is going to spoonfeed u
watch this it will teach you exactly what u want
Beginner's Roblox Scripting Tutorial #1 - Roblox Studio Basics (Beginner to Pro 2019)
Link to Beginner's Tutorial Series:
https://www.youtube.com/playlist?list=PLhieaQmOk7nIfMZ1UmvKGPrwuwQVwAvFa
Link to download Roblox Studio:
https://www.roblox.com/create
Social Media:
https://twitter.com/realtapwater
https://instagram.com/realtapwater
New...
Learn
you fix it?
yes
stop being so rude
the whole point of script helping is to help someone don't join someone's post if you're not gonna help this is not meant for shaming anyone
Period.
Bruh.
i love it cuz u thought this meant something, all 3 threads he made in the last hour were asking to be spoonfed and i gave a passive aggresive response then helped him by sending a link
i am helping him
local part = script.Parent
part.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
wait(2)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
hit.Parent.Humanoid.Sit = true
local bodyforce = Instance.new("BodyForce", player.Character.HumanoidRootPart)
bodyforce.Force = Vector3.new(-30, 20, -100 )
end
end
end)
and i just did by sending that video 🤷
ok ig
** You are now Level 6! **
nice u fix it
I just needed something but i forgot it and now it works LOL
I want this to stop when u are not tauching it
@karmic bane
just use Break
WHERE
where
inside of the While loop
dawg I just told you
I dont get it
put it where u want it to stop simple
ohh
im not arguing with you im just letting you know in advanced
no needs
my friend wrote the script btw
I want it to stop when u dont touch it
oh wait
I dont get it
@karmic bane
wtf
bro use a for loop for that shit
what is ur friend writing HAHAHA
you lol
He writes u
wth is this?
my friend made it
He doesn't know how do script, does he?
He does know something. He knows python better
What does that script even do?
You could've script that in ~10 lines, instead of 50 or how many there are
I moves something
Why not using TweenService?
In one line of TweenService you can do the exact same thing you would do in 100 lines, and is even better
He started Lua yesterday (i think)
Don't get it wrong, I don't accuse him or anything, but its just weird to see scripts with this many lines with something that could've been script in a just a few lines