#I have a script and i dont know how to change it

67 messages · Page 1 of 1 (latest)

small nest
#

please refer to google instead of asking here

#

their is plently of resources that tell you how to achieve this

late ruin
#

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

small nest
#

do u know anything about scripting

late ruin
#

no

#

I just want a launcher bro

small nest
#

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...

▶ Play video
median sluice
late ruin
#

yes

karmic bane
#

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.

late ruin
small nest
# karmic bane stop being so rude

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

late ruin
# karmic bane you fix it?

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)
small nest
#

and i just did by sending that video 🤷

still vaultBOT
#

studio** You are now Level 6! **studio

karmic bane
#

nice u fix it

late ruin
#

I want this to stop when u are not tauching it

#

@karmic bane

karmic bane
#

just use Break

late ruin
#

WHERE

late ruin
karmic bane
#

inside of the While loop

late ruin
#

ok

#

can u send it to me edited

karmic bane
#

dawg I just told you

late ruin
#

I dont get it

karmic bane
#

put it where u want it to stop simple

small nest
#

do you not realize what he said

#

he doesnt know lua at all

karmic bane
#

ohh

small nest
#

im not arguing with you im just letting you know in advanced

late ruin
#

my friend wrote the script btw

late ruin
#

oh wait

#

I dont get it

#

@karmic bane

south bronze
#

bro use a for loop for that shit

#

what is ur friend writing HAHAHA

late ruin
south bronze
#

what

#

what me

late ruin
median sluice
late ruin
median sluice
#

He doesn't know how do script, does he?

late ruin
median sluice
#

What does that script even do?

#

You could've script that in ~10 lines, instead of 50 or how many there are

late ruin
median sluice
#

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

late ruin
median sluice
#

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