i am making a game with drones and i want to make my own, there are free models but i want to be able to control everything about them such as speed and stuff by upgrading different parts like motors or a light frame, can someone help me work out how to modify the drone so i can customize it or can anyone help me make a drone? I want it to be able to pick up and drop packages too is that going to be too difficult?
#help making a drone
1 messages · Page 1 of 1 (latest)
im not asking someone to make me a script
well then whats wrong
i am asking if someone can help me with it or if someone knows how to modify the speed of the free model
there is a script called handler and initialise should i send them both?
** You are now Level 1! **
idk
probably handler
how do i send it in that weird format like '''lau or smt
you need the same thing on the end
oh shit
the 3 `
local RunService = game:GetService("RunService")
local tool = script.Parent
local drone = tool.Drone
local gui
local plr
local first = true
script.Parent.Equipped:Connect(function()
drone.Parent = game.Workspace
plr = game.Players:GetPlayerFromCharacter(tool.Parent)
if first then
drone:PivotTo((plr.Character:GetPivot() + plr.Character.Head.CFrame.LookVector * 5) * CFrame.Angles(0, math.rad(90), 0))
drone.live.Value = 0
end
drone.main:SetNetworkOwner(plr)
gui = script.DroneGui:Clone()
gui.handler.Enabled = true
gui.Parent = plr.PlayerGui
first = false
drone.main.noise:Play()
end)
script.Parent.Unequipped:Connect(function()
gui.handler.Enabled = false
gui.disable.Enabled = true
end)
RunService.Stepped:Connect(function(t, dtime)
drone.finmain.Weld.C0 = CFrame.new(Vector3.new(.1*math.sin(time()*2+4.7), .1*math.sin(time()*2), .1*math.sin(time()*2+6.1)))
drone.finmain.Weld.C1 = CFrame.new(Vector3.new(.1*math.sin(time()*1.4+6.1), .1*math.sin(time()*1.4+2.8), .1*math.sin(time()*1.4+4.7)))
drone.main.noise.PlaybackSpeed = 4 + drone.main.Velocity.Magnitude / 50 + drone.main.Velocity.Y / 50 + math.clamp(drone.main.Position.Y / 100, 1, 2) - 1
drone.live.Value += dtime
end)
drone.Body.main.ClickDetector.MouseClick:Connect(function(plr1)
if plr1 == plr then
first = true
gui.handler.Enabled = false
gui.disable.Enabled = true
drone.Parent = tool
drone.main.noise:Stop()
else
trash()
end
end)
function recur(obj, to)
if obj == game then
return false
end
if obj == to then
return true
end
return recur(obj.Parent, to)
end
```lua
there jesus
local drone = script.Parent
function weld(p1, p2)
local weld = Instance.new("Weld")
weld.Part0 = p1
weld.Part1 = p2
weld.C0 = p1.CFrame:Inverse()
weld.C1 = p2.CFrame:Inverse()
weld.Name = p1.Name..p2.Name
return weld
end
function getWeldChildren(main, childInst)
local collector = Instance.new("Folder")
collector.Name = "Welds"
for _, v in childInst:GetChildren() do
if v:IsA("BasePart") and v ~= main then
weld(v,main).Parent = collector
v.Anchored = false
end
getWeldChildren(main, v).Parent = main
end
return collector
end
function createMotor(part1, part2)
local att0 = Instance.new("Attachment")
att0.Axis = Vector3.new(0, 1, 0)
att0.Parent = part1
local att1 = Instance.new("Attachment")
att1.Axis = Vector3.new(0, 1, 0)
att1.Position = part2.CFrame:PointToObjectSpace(part1.Position)
att1.Parent = part2
local hinge = Instance.new("HingeConstraint")
hinge.Attachment0 = att0
hinge.Attachment1 = att1
hinge.ActuatorType = Enum.ActuatorType.Motor
hinge.MotorMaxTorque = math.huge
return hinge
end
getWeldChildren(drone.Body.main, drone.Body).Parent = drone.Body
local motors = Instance.new("Folder")
motors.Name = "Motors"
motors.Parent = drone
for _, prop in drone.Props:GetChildren() do
local motor = createMotor(prop, drone.Body.main)
motor.Name = prop.Name
motor.Parent = motors
prop.Anchored = false
end
drone.main.Anchored = false
this is why im confused i see nothing about speed
its got angular and linear velocity but when i change the values inside them it either does nothing or makes the drone unable to fly
No, not a property
like an object
a value
int value, string value, etc.
send me a screenshot of the explorer
ok my bad i literally started learning this 2 days ago
probably best to start learning scripting with smth small
yeah i just wanted to make this game so i guess im learning as im going cos it seems fun but yeah probably best to learn with smt basic first
This is the first episode and beginning to become a Roblox Scripter/Game Developer! With 3 playlists (Beginner, Advanced, GUI) containing 50+ videos and 30+ hours of content, I will guide you through this journey to start making the games you want to create on Roblox!
DISCORD 📜
Join my Discord Community if you want scripting help, participat...
take this
good playlist
those connect things just have weld, weld constraints and attachments
** You are now Level 2! **
oh ok thank you
yea idk, its a bit complex to work with free models
good luck learning scripting, ping me if u need help
ok thanks last question do u think itll be hard to make one from scratch? or will i be able to do it soon
it will be hard
but with discipline
you can do it
hard work, time, effort
work a bit every day
thank you ill stick to it and try
and youll be happy you leanrt how