using something like moon animator or blender you can, unfortunately im not much of an animator so i can't give a good tutorial on anything like that, although there are many other tutorials on how to animate a view model
local player = game.Players.LocalPlayer local tool = script.Parent local remote = tool:WaitForChild("RemoteEvent") tool.Activated:Connect(function() local mouse = player:getmouse() remote:fireserver(mouse.hit.position) end) local tool = script.parent local handle = tool:waitforchild("handle") local remote = tool:waitforchild("remoteevent") remote.onserverevent:(function(player, pos) local grenade = handle:clone() grenade.cancollide = true grenade.cframe.new(handle.position, pos) grenade.parent = workspace
local bv = Instance.new("BodyVelocity") bv.maxforce = Vector3.new(math.huge, math.huge, math.huge) bv.velocity = grenade.cframe.lookvector * 100 bv.parent = grenade end) thank me later
This tutorial was done in one take at 11 at night and is very scuffed, so i hope you can get any sort of value out of it 😭😭
I swear it's a crime to be this underrated😭
I’m not really a scripter but I’ve been loving your videos and tutorials especially the dev logs! Keep it up
I'd like a tutorial for a ViewModel for this and how to animate this. Can you make/recommend one?
I think I made a explosion jump coil instead of a grenade...
when i throw the grenaed it goes to my right instead of in front of me how would a fix this?
I love your Videos
can you use the viewmodel from your video and make it have animations and make it shoot
using something like moon animator or blender you can, unfortunately im not much of an animator so i can't give a good tutorial on anything like that, although there are many other tutorials on how to animate a view model
@@StuffyDevno not animation just how to put an animating script into a gun script
you dont have to do animations
just where I can put the animation id in
@@FLAIR114 at around 7 mins in this vid you can see the script used for animations
ua-cam.com/video/nKC3-pAtN5g/v-deo.htmlsi=utzwK1D_jtQElwOu
cant throw the grenade
can’t throw the grenade
local player = game.Players.LocalPlayer
local tool = script.Parent
local remote = tool:WaitForChild("RemoteEvent")
tool.Activated:Connect(function()
local mouse = player:getmouse()
remote:fireserver(mouse.hit.position)
end)
local tool = script.parent
local handle = tool:waitforchild("handle")
local remote = tool:waitforchild("remoteevent")
remote.onserverevent:(function(player, pos)
local grenade = handle:clone()
grenade.cancollide = true
grenade.cframe.new(handle.position, pos)
grenade.parent = workspace
local bv = Instance.new("BodyVelocity")
bv.maxforce = Vector3.new(math.huge, math.huge, math.huge)
bv.velocity = grenade.cframe.lookvector * 100
bv.parent = grenade
end)
thank me later
thanks bro
can’t throw the grenade